Fetch and decode a Solana nonce account.
HTTP transport.
Nonce account public key.
RPC options.
Decoded nonce account, or null if not found.
null
const nonce = await fetchNonceAccount(transport, noncePubkey);if (nonce) console.log(`Blockhash: ${nonce.decoded.blockhash}`); Copy
const nonce = await fetchNonceAccount(transport, noncePubkey);if (nonce) console.log(`Blockhash: ${nonce.decoded.blockhash}`);
1.1.0
Fetch and decode a Solana nonce account.