QueryContractRequest<T>: {
    code_hash?: string;
    contract_address: string;
    query: T;
}

Type Parameters

  • T

Type declaration

  • Optional code_hash?: string

    The SHA256 hash value of the contract's WASM bytecode, represented as case-insensitive 64 character hex string. This is used to make sure only the contract that's being invoked can decrypt the query data.

    code_hash is an optional parameter but using it will result in way faster execution time.

    Valid examples:

    • "af74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e"
    • "0xaf74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e"
    • "AF74387E276BE8874F07BEC3A87023EE49B0E7EBE08178C49D0A49C3C98ED60E"
    • "0xAF74387E276BE8874F07BEC3A87023EE49B0E7EBE08178C49D0A49C3C98ED60E"
  • contract_address: string

    The address of the contract

  • query: T

    A JSON object that will be passed to the contract as a query

Generated using TypeDoc