AssociatedTokenProgram - p2p-org/solana-swift GitHub Wiki

AssociatedTokenProgram

public enum AssociatedTokenProgram: SolanaBasicProgram 

Inheritance

SolanaBasicProgram

Properties

id

public static var id: PublicKey 

Methods

createAssociatedTokenAccountInstruction(mint:owner:payer:)

public static func createAssociatedTokenAccountInstruction(
        mint: PublicKey,
        owner: PublicKey,
        payer: PublicKey
    ) throws -> TransactionInstruction