title: Python equivalent to Solidity u256
body: <p>I am working on a Solidity Smart Contract. The idea is to automate some of the tasks using Python. So I have this code:</p>
  <pre><code>idx = 1
  event_id = cDF.iloc[idx][&quot;A&quot;].astype(int)
  event_date = cDF.iloc[idx][&quot;B&quot;].astype(int)
  x = cDF.iloc[idx][&quot;C&quot;].astype(int)
  y = cDF.iloc[idx][&quot;D&quot;].astype(int)
  
  a = 69295
  print(type(a))
  print(type(event_id))
  
  txcreation_txn = contract.functions.publishEvent(event_id, event_date, x, y).buildTransaction({
      'from': &lt;some_testing_wallet&gt;, 
      'value': 0,
      'gas': 3000000000000,
      'gasPrice': w3.toWei('1', 'gwei'),
      'nonce': nonce_var})
  signed_txn = w3.eth.account.sign_transaction(txcreation_txn, private_key=private_key)
  result = w3.eth.send_raw_transaction(signed_txn.rawTransaction)
  print(f&quot;result # {idx} - {result.hex()}&quot;)
  </code></pre>
  <p>for which I get the following error:</p>
  <pre><code>Could not identify the intended function with name `publishEvent`, positional argument(s) of type 
  `(&lt;class 'numpy.int64'&gt;, &lt;class 'numpy.int64'&gt;, &lt;class 'numpy.int64'&gt;, &lt;class 'numpy.int64'&gt;)` and keyword 
  argument(s) of type `{}`.
  Found 1 function(s) with the name `publishEvent`: ['publishEvent(uint256,uint256,uint256,uint256)']
  Function invocation failed due to no matching argument types.
  </code></pre>
  <p>However, it works and send the tx to the blockchain when I ran this manually:</p>
  <pre><code>betcreation_txn = contract.functions.publishEvent(69295,1628516242331,24,28)
  .buildTransaction({'from': '0xDaf36E4570e2f0A587331b8E1E3645Ce8861B6A5', 'value': 0,
  'gas': 3000000,'gasPrice': w3.toWei('1', 'gwei'),'nonce': nonce_var}) 
  </code></pre>
  <p>the function signature in Solidity:</p>
  <pre><code>  function publishEvent(uint256 _event_id, uint256 _event_date, uint256 _x, uint256 _y) payable public
  </code></pre>
  <p>So I guess the issue is that the data I am sending from Python is not compatible with Solidity u256. Is there any way to solve this?</p>