Skip to content
Still using @dfinity/agent? Migrate to @icp-sdk/core!

fetchCandid

fetchCandid(canisterId, agent?): Promise<string>

Defined in: packages/agent/src/fetch_candid.ts:13

Retrieves the Candid interface for the specified canister.

string

A string corresponding to the canister ID

HttpAgent

The agent to use for the request (usually an HttpAgent)

Promise<string>

Candid source code