Versions in this module Expand all Collapse all v0 v0.2.0 Dec 1, 2025 v0.1.0 Nov 28, 2025 Changes in this version + const AccountSize + const ErrorAccountFrozen + const ErrorAlreadyInUse + const ErrorAuthorityTypeNotSupported + const ErrorFixedSupply + const ErrorInsufficientFunds + const ErrorInvalidInstruction + const ErrorInvalidMint + const ErrorInvalidNumberOfProvidedSigners + const ErrorInvalidNumberOfRequiredSigners + const ErrorInvalidState + const ErrorMintCannotFreeze + const ErrorMintDecimalsMismatch + const ErrorMintMismatch + const ErrorNativeNotSupported + const ErrorNonNativeHasBalance + const ErrorNotRentExempt + const ErrorOverflow + const ErrorOwnerMismatch + const ErrorUninitializedState + const MultisigAccountSize + var AssociatedTokenAccountProgramKey = ed25519.PublicKey + var ErrAccountNotFound = errors.New("account not found") + var ErrInvalidTokenAccount = errors.New("invalid token account") + var ProgramKey = ed25519.PublicKey + func CloseAccount(account, dest, owner ed25519.PublicKey) solana.Instruction + func CreateAssociatedTokenAccount(subsidizer, wallet, mint ed25519.PublicKey) (solana.Instruction, ed25519.PublicKey, error) + func CreateAssociatedTokenAccountIdempotent(subsidizer, wallet, mint ed25519.PublicKey) (solana.Instruction, ed25519.PublicKey, error) + func GetAssociatedAccount(wallet, mint ed25519.PublicKey) (ed25519.PublicKey, error) + func InitializeAccount(account, mint, owner ed25519.PublicKey) solana.Instruction + func InitializeMultisig(account ed25519.PublicKey, requiredSigners byte, signers ...ed25519.PublicKey) solana.Instruction + func SetAuthority(account, currentAuthority, newAuthority ed25519.PublicKey, ...) solana.Instruction + func SetAuthorityMultisig(account, multisigOwner, newAuthority ed25519.PublicKey, ...) solana.Instruction + func Transfer(source, dest, owner ed25519.PublicKey, amount uint64) solana.Instruction + func Transfer2(source, mint, dest, owner ed25519.PublicKey, amount uint64, decimals byte) solana.Instruction + func TransferMultisig(source, dest, multisigOwner ed25519.PublicKey, amount uint64, ...) solana.Instruction + type Account struct + Amount uint64 + CloseAuthority ed25519.PublicKey + Delegate ed25519.PublicKey + DelegatedAmount uint64 + IsNative *uint64 + Mint ed25519.PublicKey + Owner ed25519.PublicKey + State AccountState + func (a *Account) Marshal() []byte + func (a *Account) Unmarshal(b []byte) bool + type AccountState byte + const AccountStateFrozen + const AccountStateInitialized + const AccountStateUninitialized + type AuthorityType byte + const AuthorityTypeAccountHolder + const AuthorityTypeCloseAccount + const AuthorityTypeFreezeAccount + const AuthorityTypeMintTokens + type Client struct + func NewClient(sc solana.Client) *Client + func (c *Client) GetAccount(accountID, mintID ed25519.PublicKey, commitment solana.Commitment) (*Account, error) + type Command byte + const CommandApprove + const CommandApprove2 + const CommandBurn + const CommandBurn2 + const CommandCloseAccount + const CommandFreezeAccount + const CommandInitializeAccount + const CommandInitializeMint + const CommandInitializeMultisig + const CommandMintTo + const CommandMintTo2 + const CommandRevoke + const CommandSetAuthority + const CommandThawAccount + const CommandTransfer + const CommandTransfer2 + const CommandUnknown + func GetCommand(m solana.Message, index int) (Command, error) + type DecompiledCloseAccount struct + Account ed25519.PublicKey + Destination ed25519.PublicKey + Owner ed25519.PublicKey + func DecompileCloseAccount(m solana.Message, index int) (*DecompiledCloseAccount, error) + type DecompiledCreateAssociatedAccount struct + Address ed25519.PublicKey + Mint ed25519.PublicKey + Owner ed25519.PublicKey + Subsidizer ed25519.PublicKey + func DecompileCreateAssociatedAccount(m solana.Message, index int) (*DecompiledCreateAssociatedAccount, error) + type DecompiledCreateAssociatedAccountIdempotent struct + Address ed25519.PublicKey + Mint ed25519.PublicKey + Owner ed25519.PublicKey + Subsidizer ed25519.PublicKey + func DecompileCreateAssociatedAccountIdempotent(m solana.Message, index int) (*DecompiledCreateAssociatedAccountIdempotent, error) + type DecompiledInitializeAccount struct + Account ed25519.PublicKey + Mint ed25519.PublicKey + Owner ed25519.PublicKey + func DecompileInitializeAccount(m solana.Message, index int) (*DecompiledInitializeAccount, error) + type DecompiledSetAuthority struct + Account ed25519.PublicKey + CurrentAuthority ed25519.PublicKey + NewAuthority ed25519.PublicKey + Type AuthorityType + func DecompileSetAuthority(m solana.Message, index int) (*DecompiledSetAuthority, error) + type DecompiledTransfer struct + Amount uint64 + Destination ed25519.PublicKey + Owner ed25519.PublicKey + Source ed25519.PublicKey + func DecompileTransfer(m solana.Message, index int) (*DecompiledTransfer, error) + type DecompiledTransfer2 struct + Amount uint64 + Decimals byte + Destination ed25519.PublicKey + Mint ed25519.PublicKey + Owner ed25519.PublicKey + Source ed25519.PublicKey + func DecompileTransfer2(m solana.Message, index int) (*DecompiledTransfer2, error)