@hashgraph/sdk
    Preparing search index...

    Class MirrorNodeContractCallQuery

    A query that simulates a contract function call using the Hedera Mirror Node. *

    • This query allows you to execute a read-only smart contract call without submitting a transaction
    • to the main network. It's useful for querying contract state or executing view/pure functions.
    • The simulation is performed against the state of the contract at a specific block height.

    Hierarchy

    • default
      • MirrorNodeContractCallQuery
    Index

    Constructors

    Properties

    _blockNumber: null | Long
    _contractEvmAddress: any
    _contractId: null | ContractId
    _functionName: any
    _functionParameters: null | Uint8Array<ArrayBufferLike>
    _gasLimit: null | Long
    _gasPrice: null | Long
    _sender: null | AccountId
    _senderEvmAddress: null | string
    _value: null | Long

    Accessors

    • get callData(): undefined | null | Uint8Array<ArrayBufferLike>

      Returns undefined | null | Uint8Array<ArrayBufferLike>

    Methods

    • Parameters

      • client: Client<any, any>
      • jsonPayload: object

      Returns Promise<MirrorNodeResponse>

    • Parameters

      • sender: string

      Returns MirrorNodeContractCallQuery

      Set the 20-byte EVM address of the sender. This method must be used explicitly when working with accounts that have ECDSA keys with aliases, as their EVM addresses cannot be automatically derived and must be retrieved from the Mirror Node API. The EVM address can be filled using accountId.populateAccountEvmAddress(client)