To begin, you can watch the transactions of the deployed LINK token contract on Ropsten here. This link filters for the event topics of data requests. Click on a transaction and go to the Event Logs tab and you’ll notice some of the events contain a lot more data than the others. Those are the requests for data, and you can change the Hex drop-down to Text on the last few entries and see part of the payload.
You can also use a CBOR decoder to view the full payload in plain text:
For example, here is a transaction of one of my tests. First, you can see that the beginning of the Input Data,
0x620cae68, is the function selector of
requestEthereumPrice(string) when you hash it with Keccak-256. Then, if you convert the input data to UTF8, you’ll see that I used “USD” for my input parameter.
Going to the Event Logs tab of that transaction, you can again see the requesting payload, and the address of the oracle contract that I used, here. On the oracle contract, you’ll see the transaction that my node created to fulfill the request here, and again, you can convert the Input Data to UTF8 to see the value that was given.
Additionally, you can go to the Event Logs tab, and directly obtain the hex value sent to the contract:
Once you enter the value of the last topic (Topics) into a hex-to-string converter, you can see the value:
If you would like to deploy contracts or run your own Chainlink node on Ropsten, check out the examples on our Github. You can now create your own contracts to utilize Chainlink on Ropsten. Feel free to ask us questions on Gitter!
Author: Thomas Hodges
*Originally published on Chainlink