@hashgraph/sdk
    Preparing search index...

    Class ContractId

    The ID for a crypto-currency contract on Hedera.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _checksum: null | string
    evmAddress: null | Uint8Array<ArrayBufferLike>
    num: Long
    realm: Long
    shard: Long

    Accessors

    Methods

    • Parameters

      • client: Client<any, any>

      Returns Promise<ContractId>

      Gets the actual num field of the ContractId from the Mirror Node. Should be used after generating ContractId.fromEvmAddress() because it sets the num field to 0 automatically since there is no connection between the num and the evmAddress

    • Parameters

      • client: Client<any, any>

      Returns void

      • Use validateChecksum instead
    • Parameters

      • shard: number | Long
      • realm: number | Long
      • evmAddress: string

      Returns ContractId

      This handles both long-zero format and evm address format addresses. If an actual evm address is passed, please use ContractId.populateAccountNum(client) method to get the actual num value, since there is no cryptographic relation to the evm address and cannot be populated directly