Type Aliases
PollStrategy
Type declaration
Parameters
Returns Promise<void>
Functions
pollForResponse
- pollForResponse(agent: Agent, canisterId: Principal, requestId: RequestId, strategy: PollStrategy, request?: any, blsVerify?: VerifyFunc): Promise<{ certificate: Certificate; reply: ArrayBuffer }>
Parameters
canisterId: Principal
Optional request: any
Optional blsVerify: VerifyFunc
Returns Promise<{ certificate: Certificate; reply: ArrayBuffer }>
Polls the IC to check the status of the given request then returns the response bytes once the request has been processed.