ClientManagerParameters
Defined in: types/client.ts:94
Properties
Section titled “Properties”queryClient
Section titled “queryClient”queryClient:
QueryClient
Defined in: types/client.ts:98
The TanStack QueryClient used for caching and state management.
agentOptions?
Section titled “agentOptions?”
optionalagentOptions?:HttpAgentOptions
Defined in: types/client.ts:102
Optional configuration for the underlying HttpAgent.
optionalport?:number
Defined in: types/client.ts:106
The port used for the local IC replica (default is 4943).
withLocalEnv?
Section titled “withLocalEnv?”
optionalwithLocalEnv?:boolean
Defined in: types/client.ts:110
If true, configures the agent for a local environment.
withProcessEnv?
Section titled “withProcessEnv?”
optionalwithProcessEnv?:boolean
Defined in: types/client.ts:114
If true, auto-configures the agent based on process.env settings.
authClient?
Section titled “authClient?”
optionalauthClient?:AuthClientLike
Defined in: types/client.ts:122
Optional pre-initialized AuthClient instance.
If provided, the manager will use this instance instead of dynamically importing
and creating a new one from @icp-sdk/auth.
This is useful for environments where dynamic imports are not supported or
when you want to share an AuthClient instance across multiple managers.
withCanisterEnv?
Section titled “withCanisterEnv?”
optionalwithCanisterEnv?:boolean
Defined in: types/client.ts:133
Experimental
EXPERIMENTAL - If true, uses the canister environment from @icp-sdk/core/agent/canister-env
to automatically configure the agent host and root key based on the ic_env cookie.
⚠️ This feature is experimental and may cause issues with update calls on localhost development. Use with caution and only when you need automatic environment detection from the IC SDK.
Default
Section titled “Default”false