Skip to content
IC Reactor

processUpdateCallResponse

processUpdateCallResponse(result, canisterId, methodName, agent, pollingOptions, effectiveTarget, identity?): Promise<Uint8Array<ArrayBufferLike>>

Defined in: utils/agent.ts:156

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

TargetPrincipal

Canister or subnet used to route and verify the call

Identity

Promise<Uint8Array<ArrayBufferLike>>

The raw reply bytes

RejectError if the call was rejected

UnknownError if the response format is unexpected