• Preparing search index...
  • The search index is not available
@oobe-protocol-labs/synapse-client-sdk
  • @oobe-protocol-labs/synapse-client-sdk
  • fetchNonceAccount

Function fetchNonceAccount

  • fetchNonceAccount(transport, pubkey, opts?): Promise<DecodedAccountResult<DecodedNonceAccount> | null>
  • Fetch and decode a Solana nonce account.

    Parameters

    • transport: HttpTransport

      HTTP transport.

    • pubkey: never

      Nonce account public key.

    • opts: {
          commitment?: Commitment;
      } & CallOptions = {}

      RPC options.

    Returns Promise<DecodedAccountResult<DecodedNonceAccount> | null>

    Decoded nonce account, or null if not found.

    Example

    const nonce = await fetchNonceAccount(transport, noncePubkey);
    if (nonce) console.log(`Blockhash: ${nonce.decoded.blockhash}`);

    Since

    1.1.0

    • Defined in src/accounts/nonce.ts:31

Settings

Member Visibility
@oobe-protocol-labs/synapse-client-sdk
  • Loading...

Generated using TypeDoc