https-outcalls
Installation
SKILL.md
HTTPS Outcalls
What This Is
HTTPS outcalls allow canisters to make HTTP requests to external web services directly from on-chain code. Because the Internet Computer runs on a replicated subnet (multiple nodes execute the same code), all nodes must agree on the response. A transform function strips non-deterministic fields (timestamps, request IDs, ordering) so that every replica sees an identical response and can reach consensus.
Prerequisites
- For Motoko:
mo:core2.0 andic >= 2.1.0in mops.toml - For Rust:
ic-cdk >= 0.19,serde_jsonfor JSON parsing
Canister IDs
HTTPS outcalls use the IC management canister:
| Name | Canister ID | Used For |
|---|---|---|
| Management canister | aaaaa-aa |
The http_request management call target |