pub async fn icrc_transfer_token(
ledger_id: Principal,
args: TransferArg,
) -> CallResult<IcrcTransferResult>
Expand description
Initiates a transfer of tokens on a specified ledger using the provided ICRC-1 arguments.
This function performs a transfer using the icrc1_transfer
method on the specified ledger
and returns the result of the transfer operation.
§Arguments
ledger_id
- APrincipal
representing the ID of the ledger where the transfer will be executed.args
- ATransferArg
struct containing the details of the ICRC-1 transfer.
§Returns
A CallResult<IcrcTransferResult>
indicating either the success or failure of the ICRC-1 token transfer.