FetchCandid
fetchCandid(
canisterId
,agent?
):Promise
<string
>
Defined in: packages/agent/src/fetch_candid.ts:13
Retrieves the Candid interface for the specified canister.
Parameters
Section titled “Parameters”canisterId
Section titled “canisterId”string
A string corresponding to the canister ID
agent?
Section titled “agent?”The agent to use for the request (usually an HttpAgent
)
Returns
Section titled “Returns”Promise
<string
>
Candid source code