Function transferCheckedWithFee

  • Transfer tokens from one account to another, asserting the transfer fee, 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: bigint

      Number of tokens to transfer

    • decimals: number

      Number of decimals in transfer amount

    • fee: bigint
    • multiSigners: Signer[] = []

      Signing accounts if owner is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_2022_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc