Module: Solace::Instructions::SplToken

Defined in:
lib/solace/instructions/spl_token/transfer_instruction.rb,
lib/solace/instructions/spl_token/mint_to_instruction.rb,
lib/solace/instructions/spl_token/close_account_instruction.rb,
lib/solace/instructions/spl_token/initialize_mint_instruction.rb,
lib/solace/instructions/spl_token/transfer_checked_instruction.rb,
lib/solace/instructions/spl_token/initialize_account_instruction.rb

Overview

The SplToken module contains instruction builders for the SPL Token Program.

The SPL Token Program is Solana’s standard for fungible and non-fungible tokens. It provides instructions for creating token mints, creating token accounts, minting tokens, transferring tokens, and managing token authorities.

This module contains classes that build the low-level instruction data required to interact with the SPL Token Program. Each class corresponds to a specific instruction in the program.

Examples:

Building a transfer instruction

instruction = Solace::Instructions::SplToken::TransferInstruction.build(
  source_index: 0,
  destination_index: 1,
  owner_index: 2,
  program_index: 3,
  amount: 1_000_000
)

See Also:

Since:

  • 0.0.2

Defined Under Namespace

Classes: CloseAccountInstruction, InitializeAccountInstruction, InitializeMintInstruction, MintToInstruction, TransferCheckedInstruction, TransferInstruction