Skip to main content

Determining the Request ID

Once the proof request transaction is broadcasted, a unique ID is assigned to the request and this request is unique across kalypso. You can fetch the requestId using API from kalypso-sdk as shown below

// existing setup

// askRequest created in previous step
const tx = await askRequest.wait();
const askId = await kalypso.MarketPlace().getAskId(tx as ethers.ContractTransactionReceipt);

return askId;
  • askRequest: Request broadcast transaction that was created in previous step.
  • tx: Transaction Receipt of the ask Broadcast Transaction

After fetching the request ID, Proof request can poll/wait for the proof to be published on Kalypso as explained in next section.