Skip to content

TokenProgram

bigearsenal edited this page May 17, 2022 · 1 revision

TokenProgram

public enum TokenProgram: SolanaBasicProgram 

Inheritance

SolanaBasicProgram

Properties

id

public static var id: PublicKey 

Methods

initializeMintInstruction(mint:decimals:authority:freezeAuthority:)

public static func initializeMintInstruction(
        mint: PublicKey,
        decimals: UInt8,
        authority: PublicKey,
        freezeAuthority: PublicKey?
    ) -> TransactionInstruction 

initializeAccountInstruction(account:mint:owner:)

public static func initializeAccountInstruction(
        account: PublicKey,
        mint: PublicKey,
        owner: PublicKey
    ) -> TransactionInstruction 

transferInstruction(source:destination:owner:amount:)

public static func transferInstruction(
        source: PublicKey,
        destination: PublicKey,
        owner: PublicKey,
        amount: UInt64
    ) -> TransactionInstruction 

transferCheckedInstruction(source:mint:destination:owner:multiSigners:amount:decimals:)

public static func transferCheckedInstruction(
        source: PublicKey,
        mint: PublicKey,
        destination: PublicKey,
        owner: PublicKey,
        multiSigners: [PublicKey],
        amount: Lamports,
        decimals: Decimals
    ) -> TransactionInstruction 

burnCheckedInstruction(mint:account:owner:amount:decimals:)

public static func burnCheckedInstruction(
        mint: PublicKey,
        account: PublicKey,
        owner: PublicKey,
        amount: UInt64,
        decimals: UInt8
    ) -> TransactionInstruction 

approveInstruction(account:delegate:owner:multiSigners:amount:)

public static func approveInstruction(
        account: PublicKey,
        delegate: PublicKey,
        owner: PublicKey,
        multiSigners: [Account],
        amount: UInt64
    ) -> TransactionInstruction 

mintToInstruction(mint:destination:authority:amount:)

public static func mintToInstruction(
        mint: PublicKey,
        destination: PublicKey,
        authority: PublicKey,
        amount: UInt64
    ) -> TransactionInstruction 

closeAccountInstruction(account:destination:owner:)

public static func closeAccountInstruction(
        account: PublicKey,
        destination: PublicKey,
        owner: PublicKey
    ) -> TransactionInstruction 

closeAccountInstruction(account:destination:owner:signers:)

public static func closeAccountInstruction(
        account: PublicKey,
        destination: PublicKey,
        owner: PublicKey,
        signers: [PublicKey]
    ) -> TransactionInstruction 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Operators
Extensions
Clone this wiki locally