• Decode a Solana nonce account from raw bytes.

    Layout (80 bytes):

    • [0..4] u32 — version (0=Legacy, 1=Current)
    • [4..8] u32 — state (0=uninitialized, 1=initialized)
    • [8..40] [u8;32] — authority pubkey
    • [40..72] [u8;32] — durable blockhash
    • [72..80] u64 — lamports per signature

    Parameters

    • data: Uint8Array<ArrayBufferLike>

      Raw account data (must be >= 80 bytes).

    Returns DecodedNonceAccount

    Decoded nonce account.

    If data is too short.

    1.1.0