processUpdateCallResponse
processUpdateCallResponse(
result,canisterId,methodName,agent,pollingOptions):Promise<Uint8Array<ArrayBufferLike>>
Defined in: utils/agent.ts:86
Process an update call response following the exact logic from @icp-sdk/core/agent Actor.
This handles:
- V4 responses with embedded certificate (sync call response)
- V2 responses with immediate rejection
- 202 responses that require polling
Parameters
Section titled “Parameters”result
Section titled “result”SubmitResponse
The submit response from agent.call()
canisterId
Section titled “canisterId”Principal
The target canister ID
methodName
Section titled “methodName”string
The method name being called
Agent
The HTTP agent
pollingOptions
Section titled “pollingOptions”PollingOptions
Options for polling
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>
The raw reply bytes
Throws
Section titled “Throws”RejectError if the call was rejected
Throws
Section titled “Throws”UnknownError if the response format is unexpected