Class ContractId

The ID for a crypto-currency contract on Hedera.

Hierarchy

Constructors

Properties

_checksum: null | string
evmAddress: null | Uint8Array
num: Long
realm: Long
shard: Long

Accessors

Methods

  • Parameters

    • client: default<any, any>

    Returns Promise<ContractId>

    Description

    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: default<any, any>

    Returns void

    Deprecated

    • Use validateChecksum instead
  • Parameters

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

    Returns ContractId

    Description

    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

Generated using TypeDoc