@dfinity/agent
Version:
JavaScript and TypeScript library to interact with the Internet Computer
9 lines • 424 B
TypeScript
import { HttpAgent } from './agent/http/index.ts';
/**
* Retrieves the Candid interface for the specified canister.
* @param canisterId A string corresponding to the canister ID
* @param agent The agent to use for the request (usually an `HttpAgent`)
* @returns Candid source code
*/
export declare function fetchCandid(canisterId: string, agent?: HttpAgent): Promise<string>;
//# sourceMappingURL=fetch_candid.d.ts.map