ic_icrc_tx::parser::response

Function parse_icrc1_transfer_response

Source
pub fn parse_icrc1_transfer_response(response: Response) -> TransferResult
Expand description

Parses an ICRC1 transfer response.

This function takes a Response input, decodes the base64-encoded content map, and deserializes it into a TransferResult.

§Arguments

  • response - The Response containing the base64-encoded content map.

§Returns

A TransferResult which is either a BlockIndex or a TransferError.

§Panics

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