#canister #ledger #icp #candid #icrc1

ic-icrc-tx

A utility library for building and parse icrc transactions

4 releases

new 0.1.3 Jan 10, 2025
0.1.2 Jan 10, 2025
0.1.1 Jan 9, 2025
0.1.0 Jan 9, 2025

#348 in Magic Beans

Download history 421/week @ 2025-01-05

421 downloads per month

MIT/Apache

11KB
191 lines

ic-icrc-tx Crate build and parse icrc transaction

Builder lib

This library using for building

  • Icrc1TransferArg
  • and more

to struct

pub struct CanisterCall {
    pub canister_id: String,
    pub method: String,
    pub arg: String,
}

Parser lib

  • Parsing the arg back to rust struct

  • Parsing response from canister call to rust struct

Dependencies

~4–11MB
~128K SLoC