Skip to content

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

SubmitResponse

The submit response from agent.call()

Principal

The target canister ID

string

The method name being called

Agent

The HTTP agent

PollingOptions

Options for polling

Promise<Uint8Array<ArrayBufferLike>>

The raw reply bytes

RejectError if the call was rejected

UnknownError if the response format is unexpected