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

    Parameters

    • agent: utils.agent.Agent

      The agent to use to poll read_state.

    • canisterId: types.Principal

      The effective canister ID.

    • requestId: utils.agent.RequestId

      The Request ID to poll status for.

    • Optional strategy: utils.agent.polling.PollStrategy

      A polling strategy.

    • Optional request: any

      Request for the readState call.

    • Optional blsVerify: VerifyFunc

      optional replacement function that verifies the BLS signature of a certificate.

    Returns Promise<{
        certificate: utils.agent.Certificate;
        reply: ArrayBuffer;
    }>