Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace associatedTokenAccount

Index

Variables

create

create: { instructions: (mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey) => Promise<TransactionInstruction[]>; rawInstructions: (mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey) => TransactionInstruction[]; send: (conn: Connection, mint: PublicKey, owner: PublicKey, wallet: WalletI) => Promise<PublicKey>; signed: (conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, wallet: WalletI) => Promise<Transaction>; tx: (conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey) => Promise<Transaction> } = ...

Type declaration

  • instructions: (mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey) => Promise<TransactionInstruction[]>
      • (mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey): Promise<TransactionInstruction[]>
      • Parameters

        • mint: PublicKey
        • address: PublicKey
        • owner: PublicKey
        • sender: PublicKey

        Returns Promise<TransactionInstruction[]>

  • rawInstructions: (mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey) => TransactionInstruction[]
      • (mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey): TransactionInstruction[]
      • Parameters

        • mint: PublicKey
        • address: PublicKey
        • owner: PublicKey
        • sender: PublicKey

        Returns TransactionInstruction[]

  • send: (conn: Connection, mint: PublicKey, owner: PublicKey, wallet: WalletI) => Promise<PublicKey>
      • (conn: Connection, mint: PublicKey, owner: PublicKey, wallet: WalletI): Promise<PublicKey>
      • Parameters

        • conn: Connection
        • mint: PublicKey
        • owner: PublicKey
        • wallet: WalletI

        Returns Promise<PublicKey>

  • signed: (conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, wallet: WalletI) => Promise<Transaction>
      • (conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, wallet: WalletI): Promise<Transaction>
      • Parameters

        • conn: Connection
        • mint: PublicKey
        • address: PublicKey
        • owner: PublicKey
        • wallet: WalletI

        Returns Promise<Transaction>

  • tx: (conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey) => Promise<Transaction>
      • (conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey): Promise<Transaction>
      • Parameters

        • conn: Connection
        • mint: PublicKey
        • address: PublicKey
        • owner: PublicKey
        • sender: PublicKey

        Returns Promise<Transaction>

get

get: { address: (mint: PublicKey, user: PublicKey) => Promise<PublicKey> } = ...

Type declaration

  • address: (mint: PublicKey, user: PublicKey) => Promise<PublicKey>
      • (mint: PublicKey, user: PublicKey): Promise<PublicKey>
      • Parameters

        • mint: PublicKey
        • user: PublicKey

        Returns Promise<PublicKey>

Functions

Const createAssociatedTokenAccountInstructions

  • createAssociatedTokenAccountInstructions(mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey): Promise<TransactionInstruction[]>

Const createAssociatedTokenAccountRawInstructions

  • createAssociatedTokenAccountRawInstructions(mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey): TransactionInstruction[]

Const createAssociatedTokenAccountSend

  • createAssociatedTokenAccountSend(conn: Connection, mint: PublicKey, owner: PublicKey, wallet: WalletI): Promise<PublicKey>

Const createAssociatedTokenAccountSigned

  • createAssociatedTokenAccountSigned(conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, wallet: WalletI): Promise<Transaction>

Const createAssociatedTokenAccountTx

  • createAssociatedTokenAccountTx(conn: Connection, mint: PublicKey, address: PublicKey, owner: PublicKey, sender: PublicKey): Promise<Transaction>

Const exists

  • exists(conn: Connection, mint: PublicKey, user: PublicKey): Promise<boolean>

Const getAssociatedTokenAddress

  • getAssociatedTokenAddress(mint: PublicKey, user: PublicKey): Promise<PublicKey>

Generated using TypeDoc