ic_icrc_tx::builder::icrc1

Function build_icrc1_transfer

Source
pub fn build_icrc1_transfer(
    canister_id: String,
    transfer_arg: TransferArg,
) -> CanisterCall
Expand description

Builds an ICRC1 transfer canister call.

§Arguments

  • canister_id - The ID of the canister to call.
  • transfer_arg - The transfer arguments.

§Returns

A CanisterCall struct containing the canister ID, method name, and encoded arguments.