@hashgraph/sdk
    Preparing search index...

    Class AccountId

    The ID for a crypto-currency account on Hedera.

    Index

    Constructors

    Properties

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

    Accessors

    Methods

    • Parameters

      • client: Client<any, any>

      Returns Promise<AccountId>

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

    • Parameters

      • client: Client<any, any>

      Returns Promise<AccountId>

      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

    • Returns string

      Statically compute the EVM address. Use only with non-native EVM accounts.

      • Use toEvmAddress instead If the account is EVM-native, the EVM address depends on the public key and is not directly related to the account ID.
    • Parameters

      • client: Client<any, any>

      Returns string

    • Parameters

      • client: Client<any, any>

      Returns void

      • Use validateChecksum instead
    • Parameters

      Returns AccountId

      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

      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)