@hashgraph/sdk
    Preparing search index...

    Function fromEvmAddress

    • Parse an EVM address and return shard, realm, entity num, and optional EVM address.

      For long zero addresses (first 12 bytes are zeros): returns [shard, realm, entityNum, null] For regular EVM addresses: returns [shard, realm, 0, EvmAddress]

      Parameters

      • shard: number | Long

        The shard number to use

      • realm: number | Long

        The realm number to use

      • address: string

        The EVM address to parse (with or without 0x prefix)

      Returns [Long, Long, Long, null | EvmAddress]

      • [shard, realm, entityNum, evmAddressOrNull]