Registry / networking / ic-agent

ic-agent

JSON →
library0.47.3rscratesunverified

Agent library for communicating with the Internet Computer blockchain following the Public Specification.

# Cargo.toml [dependencies] ic-agent = "0.47.3"
INSTALL
IMPORT
SIG · IC-AGENT
I
ic-agent
networkingrustv0.47.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Agent
use ic_agent::Agent;

Creates an agent to interact with the Internet Computer.

use ic_agent::Agent; #[tokio::main] async fn main() { let agent = Agent::builder().with_url("https://ic0.app").build().unwrap(); println!("Agent created"); }
Debug
Known issues
gotchaRequires an async runtime like Tokio for execution.
fix
Add tokio as a dependency and use #[tokio::main] or another async runtime.
affects: >=0.1.0
Upgrade
Version history
0.47.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
ic-agent — cargo add ic-agent · libregistry