|new 0.2.2||Jun 10, 2021|
|0.2.1||Jun 3, 2021|
|0.2.0||May 7, 2021|
|0.1.0||Apr 16, 2021|
#40 in HTTP client
23 downloads per month
A command line tool to use the
ic-agent crate directly. It allows simple communication with
the Internet Computer.
icx you will have to build it locally, using
cargo. Make a clone of this repository,
then in it simply run
git clone https://github.com/dfinity/agent-rust.git cd agent-rust cargo build
The output executable will be in
To get help, simply use
To read a PEM file, you can pass it with the
--pem argument. The PEM file must be a valid
key that can be used for the Internet Computer signing and validation.
For non-IC networks, pass --fetch-root-key to fetch the root key. When this argument is not present, icx uses the hardcoded public key.
To call the management canister's
create_canister function, you can use the following:
icx update aaaaa-aa create_canister
If you have a candid file, you can use it to validate arguments. Pass it in with the
icx query 75hes-oqbaa-aaaaa-aaaaa-aaaaa-aaaaa-aaaaa-q greet --candid=~/path/greet.did '("World")'