title: How do I decode the hex from a specific part of a BSC transaction receipt, using web3 py?
body: <p>I am writing a python script using web3 package.</p>
  <p><strong>The process explained:</strong></p>
  <ol>
  <li><p>I have a transaction, which I read the transaction receipt for</p>
  <p><code>txn_receipt = w3.eth.getTransactionReceipt('0x8ddd5ab8f53df7365a2feb8ee249ca2d317edcdcb6f40faae728a3cb946b4eb1')</code></p>
  </li>
  <li><p>Just for this example, I read a specific section of the log. This returns a hex.</p>
  <p><code>x = txn_receipt['logs'][4]['data']</code></p>
  </li>
  </ol>
  <p>PROBLEM:
  How do I decode this hex? If you go to BSC SCAN, you will see the decoded value I am expecting at block 453.</p>
  <p>Expected value:</p>
  <pre><code>amount0In :
  2369737542851785768252
  amount1In :
  0
  amount0Out :
  0
  amount1Out :
  82650726831815053455
  </code></pre>
  <p>See here:
  <a href="https://bscscan.com/tx/0x8ddd5ab8f53df7365a2feb8ee249ca2d317edcdcb6f40faae728a3cb946b4eb1#eventlog" rel="nofollow noreferrer">https://bscscan.com/tx/0x8ddd5ab8f53df7365a2feb8ee249ca2d317edcdcb6f40faae728a3cb946b4eb1#eventlog</a></p>