Function callReadOnlyFunction

  • Calls a function as read-only from a contract interface. It is not necessary that the function is defined as read-only in the contract

    Parameters

    • __namedParameters: {
          contractAddress: string;
          contractName: string;
          functionArgs: ClarityValue[];
          functionName: string;
          senderAddress: string;
      } & ApiParam

    Returns Promise<ClarityValue>

    Returns an object with a status bool (okay) and a result string that is a serialized clarity value in hex format.

Generated using TypeDoc