@hiero-ledger/sdk
    Preparing search index...

    Class Authorization

    A structured, read-only view of a single EIP-7702 / HIP-1340 authorization, layered over the positional [chainId, address, nonce, yParity, r, s] tuple stored by EthereumTransactionDataEip7702.

    Per the cross-SDK proposal the authorization is immutable: it has no setters, and is created either at construction time or from an existing tuple. The envelope keeps the tuple representation as the source of truth.

    Index

    Constructors

    • Each argument is normalized to minimal big-endian bytes. Integer-like fields accept a number | bigint | Long | Uint8Array | string; address also accepts an EvmAddress.

      Parameters

      • chainId: string | number | bigint | Uint8Array<ArrayBufferLike> | Long
      • address: string | Uint8Array<ArrayBufferLike> | EvmAddress
      • nonce: string | number | bigint | Uint8Array<ArrayBufferLike> | Long
      • yParity: string | number | bigint | Uint8Array<ArrayBufferLike> | Long
      • r: string | Uint8Array<ArrayBufferLike>
      • s: string | Uint8Array<ArrayBufferLike>

      Returns Authorization

    Properties

    _address: Uint8Array<ArrayBufferLike>
    _chainId: Uint8Array<ArrayBufferLike>
    _nonce: Uint8Array<ArrayBufferLike>
    _r: Uint8Array<ArrayBufferLike>
    _s: Uint8Array<ArrayBufferLike>
    _yParity: Uint8Array<ArrayBufferLike>

    Methods

    • Returns Uint8Array<ArrayBufferLike>

      the raw address bytes

    • Returns Uint8Array<ArrayBufferLike>

      the raw chain id bytes

    • Returns Uint8Array<ArrayBufferLike>

      the raw nonce bytes

    • Returns Uint8Array<ArrayBufferLike>

      the authorization signature r value

    • Returns Uint8Array<ArrayBufferLike>

      the authorization signature s value

    • Convert back into the positional tuple used by the envelope's authorizationList field.

      Returns AuthorizationTuple