ic_icrc_tx::parser::request

Function parse_icrc1_transfer_arg

Source
pub fn parse_icrc1_transfer_arg(caniser_call_input: CanisterCall) -> TransferArg
Expand description

Parses an ICRC1 transfer canister call.

This function takes a CanisterCall input, decodes the base64-encoded argument, and deserializes it into a TransferArg struct.

§Arguments

  • caniser_call_input - The CanisterCall containing the base64-encoded transfer argument.

§Returns

A TransferArg struct containing the decoded transfer arguments.

§Panics

This function will panic if the base64 decoding or deserialization fails.