@hashgraph/sdk
    Preparing search index...

    Class DelegateContractId

    epresents a delegatable smart contract ID on the Hedera network. This class extends ContractId and provides additional functionality for delegatable contracts.

    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

      • 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