Skip to content

PollForResponse

pollForResponse(agent, canisterId, requestId, options): Promise<{ certificate: Certificate; reply: Uint8Array; }>

Defined in: packages/agent/src/polling/index.ts:125

Polls the IC to check the status of the given request then returns the response bytes once the request has been processed.

Agent

The agent to use to poll read_state.

Principal

The effective canister ID.

RequestId

The Request ID to poll status for.

PollingOptions = {}

polling options to control behavior

Promise<{ certificate: Certificate; reply: Uint8Array; }>