Solana.SystemProgram.Nonce (Solana v0.2.0) View Source

Functions for interacting with the System Program's nonce accounts, required for durable transaction nonces.

These accounts can be useful for offline transactions, as well as transactions that require more time to generate a transaction signature than the normal recent_blockhash transaction mechanism gives them (~2 minutes).

Link to this section Summary

Functions

Generates the instructions for advancing a nonce account's stored nonce value.

Generates the instructions for re-assigning the authority of a nonce account.

The size of a serialized nonce account.

Translates the result of a Solana.RPC.Request.get_account_info/2 into a nonce account's information.

Generates the instructions for initializing a nonce account.

Generates the instructions for withdrawing funds form a nonce account.

Link to this section Functions

Generates the instructions for advancing a nonce account's stored nonce value.

Options

  • :nonce - Required. Public key of the nonce account

  • :authority - Required. Public key of the nonce authority

Generates the instructions for re-assigning the authority of a nonce account.

Options

  • :nonce - Required. Public key of the nonce account

  • :authority - Required. Public key of the nonce authority

  • :new_authority - Required. Public key to set as the new nonce authority

The size of a serialized nonce account.

Specs

from_account_info(info :: map()) :: map() | :error

Translates the result of a Solana.RPC.Request.get_account_info/2 into a nonce account's information.

Generates the instructions for initializing a nonce account.

Options

  • :nonce - Required. Public key of the nonce account

  • :authority - Required. Public key of the nonce authority

Generates the instructions for withdrawing funds form a nonce account.

Options

  • :nonce - Required. Public key of the nonce account

  • :authority - Required. Public key of the nonce authority

  • :to - Required. Public key of the account which will get the withdrawn lamports

  • :lamports - Required. Amount of lamports to transfer to the created account