Optional
fetchOptional
fetchOptional
callOptional
hostOptional
identityOptional
ingressThe maximum time a request can be delayed before being rejected.
5 minutes
Optional
credentialsOptional
password?: stringOptional
useAdds a unique Nonce with each query. Enabling will prevent queries from being answered with a cached response.
const agent = new HttpAgent({ useQueryNonces: true });
agent.addTransform(makeNonceTransform(makeNonce);
false
Optional
retryNumber of times to retry requests before throwing an error
3
Optional
backoffThe strategy to use for backoff when retrying requests
Optional
verifyWhether the agent should verify signatures signed by node keys on query responses. Increases security, but adds overhead and must make a separate request to cache the node keys for the canister's subnet.
true
Optional
logWhether to log to the console. Defaults to false.
Optional
rootAlternate root key to use for verifying certificates. If not provided, the default IC root key will be used.
Optional
agent
MDN Reference