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.
The agent to use to poll read_state.
canisterId
Section titled “canisterId”The effective canister ID.
requestId
Section titled “requestId”The Request ID to poll status for.
options
Section titled “options”PollingOptions
= {}
polling options to control behavior
Returns
Section titled “Returns”Promise
<{ certificate
: Certificate
; reply
: Uint8Array
; }>