Airnode RRP
How the Airnode RRP works
The makeFullRequest() function in the Airnode RRP contract ultimately generates a unique requestId which is sent back to Perped as can be seen :
requestId = keccak256(abi.encodePacked(block.chainId, address(this), msg.sender, requesterRequestCount, airnode, endpointId, sponsor, sponsorWallet, fullfillAddress, fulfillFunctionId, parameters));And declares an event(using emit) written on-chain that the Airnode host will see whenever it wakes up, signaling it to fetch a price and send it to Perped’s fulfill() function
emit MadeFullRequest(airnode, requestId, requesterRequestCount, block.chainid, msg.sender, endpointId, sponsor, sponsorWallet, fulfillAddress, fulfillFunctionId, parameters);Last updated