AssociatedTokenAccountProgram class

Inheritance

Constructors

AssociatedTokenAccountProgram({required List<AccountMeta> keys, required SolAddress programId, required ProgramLayout layout})
AssociatedTokenAccountProgram.associatedTokenAccount({required SolAddress payer, required SolAddress associatedToken, required SolAddress owner, required SolAddress mint, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress associatedTokenProgramId = AssociatedTokenAccountProgramConst.associatedTokenProgramId})
Factory method for creating an associated token account
factory
AssociatedTokenAccountProgram.associatedTokenAccountIdempotent({required SolAddress payer, required SolAddress associatedToken, required SolAddress owner, required SolAddress mint, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress associatedTokenProgramId = AssociatedTokenAccountProgramConst.associatedTokenProgramId})
Factory method for creating an associated token account idempotent
factory
AssociatedTokenAccountProgram.fromBytes({required List<AccountMeta> keys, required List<int> instructionBytes, SolAddress programId = AssociatedTokenAccountProgramConst.associatedTokenProgramId})
factory
AssociatedTokenAccountProgram.recoverNested({required SolAddress nestedAssociatedToken, required SolAddress nestedMint, required SolAddress destinationAssociatedToken, required SolAddress ownerAssociatedToken, required SolAddress ownerMint, required SolAddress owner, SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId, SolAddress associatedTokenProgramId = AssociatedTokenAccountProgramConst.associatedTokenProgramId})
Factory method for recovering a nested associated token account
factory

Properties

data List<int>
Program input.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
keys List<AccountMeta>
Public keys to include in this transaction Boolean represents whether this pubkey needs to sign the transaction
finalinherited
layout ProgramLayout
Program layout.
finalinherited
programId SolAddress
Program Id to execute.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited