ID Address f0..

Protocol 0 addresses are simple IDs. All actors have a numeric ID even if they don’t have public keys. The payload of an ID address is base10 encoded. IDs are not hashed and do not have a checksum.

Hierarchy (View Summary)

Implements

Constructors

Properties

"[symbol]": boolean
id: bigint
network: Network
networkPrefix: "f" | "t"
payload: Uint8Array<ArrayBufferLike>
protocol: 0

Methods

  • Returns Uint8Array<ArrayBufferLike>

  • Converts any address to a 0x address, either id masked address or eth address depending on the address type. Delegated addresses convert to eth address and f1, f2, f3 convert to id masked address and f0 depends on the underline address type

    Parameters

    Returns Promise<string>

  • Returns Uint8Array<ArrayBuffer>

  • Returns `0x${string}`

  • Convert address to ID masked 0x address

    To convert to an eth address you problably should use to0x

    Returns string

  • Returns string

  • Create address from bytes

    Parameters

    Returns AddressId

  • Create ID address from ID masked 0x address

    Parameters

    Returns AddressId

  • Create address from string

    Parameters

    • address: string

    Returns AddressId