icrc_transfer_token_from

Function icrc_transfer_token_from 

Source
pub async fn icrc_transfer_token_from(
    ledger_id: Principal,
    args: TransferFromArgs,
) -> CallResult<IcrcTransferFromResult>
Expand description

Initiates a transfer from a specified account on a ledger using the provided ICRC-2 arguments.

This function performs a transfer using the icrc2_transfer_from method on the specified ledger and returns the result of the transfer operation.

§Arguments

  • ledger_id - A Principal representing the ID of the ledger where the transfer will be executed.
  • args - A TransferFromArgs struct containing the details of the ICRC-2 transfer, including the source account.

§Returns

A CallResult<IcrcTransferFromResult> indicating either the success or failure of the ICRC-2 token transfer.