Solana.SPL.Token.Mint (Solana.SPL v0.1.0) View Source
Functions for interacting with the mint accounts of Solana's Token Program.
Link to this section Summary
Functions
The size of a serialized token mint account.
Translates the result of a Solana.RPC.Request.get_account_info/2
into a
Solana.SPL.Token.Mint.t/0
.
Genereates the instructions to initialize a mint account.
Link to this section Types
Specs
t() :: %Solana.SPL.Token.Mint{ authority: Solana.key() | nil, decimals: byte(), freeze_authority: Solana.key() | nil, initialized?: boolean(), supply: non_neg_integer() }
Token Program mint account metadata.
Link to this section Functions
Specs
byte_size() :: pos_integer()
The size of a serialized token mint account.
Specs
Translates the result of a Solana.RPC.Request.get_account_info/2
into a
Solana.SPL.Token.Mint.t/0
.
Genereates the instructions to initialize a mint account.
Options
:payer
- Required. The account that will pay for the mint creation:balance
- Required. The lamport balance the mint account should have:decimals
- Required. decimals for the new mint:authority
- Required. authority for the new mint:freeze_authority
- freeze authority for the new mint:new
- Required. public key for the new mint