Function transferChecked

  • Transfer tokens from one account to another, asserting the token mint and decimals

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • source: PublicKey

      Source account

    • mint: PublicKey

      Mint for the account

    • destination: PublicKey

      Destination account

    • owner: PublicKey | Signer

      Owner of the source account

    • amount: number | bigint

      Number of tokens to transfer

    • decimals: number

      Number of decimals in transfer amount

    • multiSigners: Signer[] = []

      Signing accounts if owner is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc