• Retrieves the Candid interface for the specified canister.

    Parameters

    • canisterId: string

      A string corresponding to the canister ID

    • Optional agent: types.HttpAgent

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

    Returns Promise<string>

    Candid source code