How should I pass the following arguments to sendOFT
function in
This smart smart contract using python web3.py and block explorer?
Here are the data types:
I get an error when I pass elements like this. Here is a sample transaction and this is it's decoded input data:
I would appreciate a complete input sample for both python web3.py(web3.js would be good as well) and Block Explorer.
In web3.py, you can pass a Solidity
struct
asFor example:
If you pass struct as a tuple, arguments must be in the same order as they are in Solidity source code.
You would encode this for a smart contract call as following
See Web3.py documentation for more information.
As block explorers tend to be proprietary software, you need to contact the support desk of any block explorer to learn how to use their software, and this job should not be outsourced to the public community.