I'm trying to use eth_call to send USDT (TetherToken) from one account to another (Although I know that
eth_call just simiulate such transaction). Everything is clear in this regard, just the data parametere is a bit ambiguous. As far as I read, it must be an encoded value of the contract and some other parameteres. After checking many web pages, I found this value as ABI-Encoded and is the last bytes of the Contract mentioned in this link:
Now, my questions are:
- Is using this code as
datavalue enough for running
- The value above is a HEX one. But the givven example inside documentation uses a shorter value of data like
0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675which is HEX too, but in a shorter format. What kind of encoding is applied to prepare such final data value?
- What are other parameteres beside contract signature which have to be included in data value creation?
- I've found a website to convert contract JSON to ABI encoded format. After pasting the TetherToken contract JSON in this website and pressing parse, some new field appeared. One of them was
_initialSupply. Other field are clear, and their values are available. But I could not understand what is
_initialSupplyexactly here and where can I find it?
I hope you can help me to find the answer of my questons. Sorry for too many questions...