The CandidAdapter class is used to interact with a canister and retrieve its Candid interface definition.
It provides methods to fetch the Candid definition either from the canister's metadata or by using a temporary hack method.
If both methods fail, it throws an error.
The
CandidAdapter
class is used to interact with a canister and retrieve its Candid interface definition. It provides methods to fetch the Candid definition either from the canister's metadata or by using a temporary hack method. If both methods fail, it throws an error.Example
Using
createReactorCore
withCandidAdapter
You can use the
candidAdapter
to fetch the Candid definition and then pass it to thecreateReactorCore
function.