Crate spl_token

source ·
Expand description

An ERC20-like Token program for the Solana blockchain

Re-exports

Modules

Constants

  • The const program ID.

Functions

  • Convert a raw amount to its UI representation (using the decimals field defined in its mint)
  • Convert a raw amount to its UI representation (using the decimals field defined in its mint)
  • Convert a raw amount to its UI representation using the given decimals field Excess zeroes or unneeded decimal point are trimmed.
  • Returns true if given pubkey is the program ID.
  • Checks that the supplied program ID is the correct one for SPL-token
  • Returns the program ID.
  • Try to convert a UI representation of a token amount to its raw amount using the given decimals field
  • Convert the UI representation of a token amount (using the decimals field defined in its mint) to the raw amount