Decoded Solana Nonce Account (80 bytes).

const nonce = decodeNonceAccount(rawBytes);
console.log(`Blockhash: ${nonce.blockhash}, Authority: ${nonce.authority}`);

1.1.0

interface DecodedNonceAccount {
    authority: never;
    blockhash: string;
    lamportsPerSignature: bigint;
    state: NonceState;
    version: number;
}

Properties

authority: never

Authority that can advance the nonce.

blockhash: string

Stored durable blockhash.

lamportsPerSignature: bigint

Fee calculator lamports per signature at the stored blockhash.

state: NonceState

Account state.

version: number

Nonce version discriminant (0 = Legacy, 1 = Current). Most nonces are Current (1).