Function createTransferInstruction

  • Construct a Transfer instruction

    Parameters

    • source: PublicKey

      Source account

    • destination: PublicKey

      Destination account

    • owner: PublicKey

      Owner of the source account

    • amount: number | bigint

      Number of tokens to transfer

    • multiSigners: (PublicKey | Signer)[] = []

      Signing accounts if owner is a multisig

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc