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- APrincipalrepresenting the ID of the ledger where the transfer will be executed.args- ATransferFromArgsstruct 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.