Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Spl

Index

Constructors

Methods

  • getAssociatedTokenAccount(__namedParameters: { mint: PublicKey; owner: PublicKey }): Promise<PublicKey>
  • Parameters

    • __namedParameters: { mint: PublicKey; owner: PublicKey }
      • mint: PublicKey
      • owner: PublicKey

    Returns Promise<PublicKey>

  • insertCreateWrappedNativeAccountInstructions(__namedParameters: { amount: BigNumberish; commitment?: Commitment; connection: Connection; instructions: TransactionInstruction[]; owner: PublicKey; payer: PublicKey; signers: Signer[] }): Promise<PublicKey>
  • Parameters

    • __namedParameters: { amount: BigNumberish; commitment?: Commitment; connection: Connection; instructions: TransactionInstruction[]; owner: PublicKey; payer: PublicKey; signers: Signer[] }
      • amount: BigNumberish
      • Optional commitment?: Commitment
      • connection: Connection
      • instructions: TransactionInstruction[]
      • owner: PublicKey
      • payer: PublicKey
      • signers: Signer[]

    Returns Promise<PublicKey>

  • makeCloseAccountInstruction(__namedParameters: { multiSigners?: Signer[]; owner: PublicKey; payer: PublicKey; tokenAccount: PublicKey }): TransactionInstruction
  • Parameters

    • __namedParameters: { multiSigners?: Signer[]; owner: PublicKey; payer: PublicKey; tokenAccount: PublicKey }
      • Optional multiSigners?: Signer[]
      • owner: PublicKey
      • payer: PublicKey
      • tokenAccount: PublicKey

    Returns TransactionInstruction

  • makeCreateAssociatedTokenAccountInstruction(__namedParameters: { associatedAccount: PublicKey; mint: PublicKey; owner: PublicKey; payer: PublicKey }): TransactionInstruction
  • Parameters

    • __namedParameters: { associatedAccount: PublicKey; mint: PublicKey; owner: PublicKey; payer: PublicKey }
      • associatedAccount: PublicKey
      • mint: PublicKey
      • owner: PublicKey
      • payer: PublicKey

    Returns TransactionInstruction

  • makeCreateWrappedNativeAccountInstructions(__namedParameters: { amount: BigNumberish; commitment?: Commitment; connection: Connection; owner: PublicKey; payer: PublicKey }): Promise<{ instructions: TransactionInstruction[]; newAccount: Keypair }>
  • Parameters

    • __namedParameters: { amount: BigNumberish; commitment?: Commitment; connection: Connection; owner: PublicKey; payer: PublicKey }
      • amount: BigNumberish
      • Optional commitment?: Commitment
      • connection: Connection
      • owner: PublicKey
      • payer: PublicKey

    Returns Promise<{ instructions: TransactionInstruction[]; newAccount: Keypair }>

  • makeInitAccountInstruction(__namedParameters: { mint: PublicKey; owner: PublicKey; tokenAccount: PublicKey }): TransactionInstruction
  • Parameters

    • __namedParameters: { mint: PublicKey; owner: PublicKey; tokenAccount: PublicKey }
      • mint: PublicKey
      • owner: PublicKey
      • tokenAccount: PublicKey

    Returns TransactionInstruction

  • makeInitMintInstruction(__namedParameters: { decimals: number; freezeAuthority?: null | PublicKey; mint: PublicKey; mintAuthority: PublicKey }): TransactionInstruction
  • Parameters

    • __namedParameters: { decimals: number; freezeAuthority?: null | PublicKey; mint: PublicKey; mintAuthority: PublicKey }
      • decimals: number
      • Optional freezeAuthority?: null | PublicKey
      • mint: PublicKey
      • mintAuthority: PublicKey

    Returns TransactionInstruction

  • makeMintToInstruction(__namedParameters: { amount: BigNumberish; authority: PublicKey; dest: PublicKey; mint: PublicKey; multiSigners?: Signer[] }): TransactionInstruction
  • Parameters

    • __namedParameters: { amount: BigNumberish; authority: PublicKey; dest: PublicKey; mint: PublicKey; multiSigners?: Signer[] }
      • amount: BigNumberish
      • authority: PublicKey
      • dest: PublicKey
      • mint: PublicKey
      • Optional multiSigners?: Signer[]

    Returns TransactionInstruction

  • makeTransferInstruction(__namedParameters: { amount: BigNumberish; destination: PublicKey; multiSigners?: Signer[]; owner: PublicKey; source: PublicKey }): TransactionInstruction
  • Parameters

    • __namedParameters: { amount: BigNumberish; destination: PublicKey; multiSigners?: Signer[]; owner: PublicKey; source: PublicKey }
      • amount: BigNumberish
      • destination: PublicKey
      • Optional multiSigners?: Signer[]
      • owner: PublicKey
      • source: PublicKey

    Returns TransactionInstruction