Class: Solace::Programs::SplToken
- Includes:
- TokenProgramInterface
- Defined in:
- lib/solace/programs/spl_token.rb
Overview
Client for interacting with the legacy SPL Token Program.
This client provides methods for creating mints, minting tokens, and transferring tokens via the legacy SPL Token program (TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA). The shared method shape comes from TokenProgramInterface; this class supplies the SPL-bound composer classes.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(connection:) ⇒ SplToken
constructor
Initializes a new SPL Token client.
Methods included from TokenProgramInterface
#compose_create_mint, #compose_mint_to, #compose_transfer, #compose_transfer_checked, #create_mint, #mint_to, #transfer, #transfer_checked
Constructor Details
#initialize(connection:) ⇒ SplToken
Initializes a new SPL Token client.
38 39 40 |
# File 'lib/solace/programs/spl_token.rb', line 38 def initialize(connection:) super(connection: connection, program_id: Solace::Constants::TOKEN_PROGRAM_ID) end |