title: Decode JSON RPC request to a contract
body: <p>I am currently using some website to read some useful data. Using the browser's Inspect&gt;Network I can see this data comes from JSON RPC requests to (<a href="https://bsc-dataseed1.defibit.io/" rel="nofollow noreferrer">https://bsc-dataseed1.defibit.io/</a>) the public available BSC explorer API endpoint.</p>
  <p>This requests have the following format:</p>
  <p>Request params:</p>
  <pre><code>{&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:43,&quot;method&quot;:&quot;eth_call&quot;,&quot;params&quot;:[{&quot;data&quot;:&quot;...LONGBYTESTRING!!!&quot;,&quot;to&quot;:&quot;0x1ee38d535d541c55c9dae27b12edf090c608e6fb&quot;},&quot;latest&quot;]}
  </code></pre>
  <p>Response:</p>
  <pre><code>{&quot;jsonrpc&quot;:&quot;2.0&quot;,&quot;id&quot;:43,&quot;result&quot;:&quot;...OTHERVERYLONGBYTESTRING!!!&quot;}
  </code></pre>
  <p>I know that the <code>to</code> field corresponds to the address of a smart contract <a href="https://bscscan.com/address/0x1ee38d535d541c55c9dae27b12edf090c608e6fb" rel="nofollow noreferrer">0x1ee38d535d541c55c9dae27b12edf090c608e6fb</a>.</p>
  <p>Looks like this requests &quot;queries&quot; the contract for some data (but it costs 0 gas?).</p>
  <p>From (the very little) I understand, the encoded data can be decoded with the schema, which I think I could get from the smart contract address. (perhaps this is it? <a href="https://api.bscscan.com/api?module=contract&amp;action=getabi&amp;address=0x1ee38d535d541c55c9dae27b12edf090c608e6fb" rel="nofollow noreferrer">https://api.bscscan.com/api?module=contract&amp;action=getabi&amp;address=0x1ee38d535d541c55c9dae27b12edf090c608e6fb</a>)</p>
  <p>My goal is to understand the data being sent in the request and the data given in the response so I can reproduce the data from the website without having to scrape this data from the website.</p>
  <p>Thanks.</p>