Module: Solace::Programs

Defined in:
lib/solace/programs/base.rb,
lib/solace/programs/spl_token.rb,
lib/solace/programs/associated_token_account.rb

Overview

The Programs module contains high-level interfaces to Solana on-chain programs.

Programs in this module provide convenient methods for interacting with on-chain programs without needing to manually construct instructions or manage account ordering. They serve as a bridge between the low-level instruction builders and high-level application code.

Each program class corresponds to a specific on-chain program:

Examples:

Using a program interface

token_program = Solace::Programs::SplToken.new(connection)
token_program.transfer(
  to:,
  from:,
  owner:,
  amount:
)

See Also:

Since:

  • 0.0.2

Defined Under Namespace

Classes: AssociatedTokenAccount, Base, SplToken