Class AccountId

The ID for a crypto-currency account on Hedera.

Hierarchy

  • AccountId

Constructors

Properties

_checksum: null | string
aliasKey: null | PublicKey
evmAddress: null | EvmAddress
num: Long
realm: Long
shard: Long

Accessors

Methods

  • Parameters

    • client: default<any, any>

    Returns Promise<AccountId>

    Description

    Populates evmAddress field of the AccountId extracted from the Mirror Node.

  • Parameters

    • client: default<any, any>

    Returns Promise<AccountId>

    Description

    Gets the actual num field of the AccountId from the Mirror Node. Should be used after generating AccountId.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 | EvmAddress

    Returns AccountId

    Description

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

  • Parameters

    • text: string

    Returns AccountId

    Description

    Accepts the following formats as string: - as stand alone nubmers - as shard.realm.num - as shard.realm.hex (wo 0x prefix) - hex (w/wo 0x prefix)

Generated using TypeDoc