Closed
Description
etherScanClient.ERC20Transfers(&contract, &address, &startBlock, &bestBlock, 1, 0)
Address : 0xd46d54fdac2bf746dfd97d699810c3774a427b3c
Contract : 0x5eac95ad5b287cf44e058dcf694419333b796123
StartBlock : 0
BestBlock : Around 6.3 million
JSON response
{
"status": "1",
"message": "OK",
"result": [
{
"blockNumber": "5802549",
"timeStamp": "1529204204",
"hash": "0x4a9430b79d072f22bdeb553cbee94148b03b71173ceaa14c6eb317dcaf49f377",
"nonce": "9755",
"blockHash": "0x3828622f018be7635a6a42afda5725efc133ae7a3bedc122e32e7e3644deb156",
"from": "0x2881badc252165ee04c697306fea572cd19d8549",
"contractAddress": "0x5eac95ad5b287cf44e058dcf694419333b796123",
"to": "0xd46d54fdac2bf746dfd97d699810c3774a427b3c",
"value": "600000000000000000000",
"tokenName": "",
"tokenSymbol": "",
"tokenDecimal": "",
"transactionIndex": "108",
"gas": "1500000",
"gasPrice": "3000000000",
"gasUsed": "1446427",
"cumulativeGasUsed": "6025951",
"input": "0xbadcb92a000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000002086ac35105260000000000000000000000000000000000000000000000000000000000000000001c0000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000e0060462c47ff9679baef07159cae08c29f274a90000000000000000000000002d03fbf63a78d0eb83873d9159d0e20a171cbbdd000000000000000000000000da0c2012be2ce446911a304db5df62e39f6a1f8a00000000000000000000000078b978a9d7e91ee529ea4fc4b76feaf8762f698c00000000000000000000000044f62f2aaabc29ad3a6b04e1ff6f9ce452d1c140000000000000000000000000889713a4c501f65e369a4ea497ea7f9af871d395000000000000000000000000d46d54fdac2bf746dfd97d699810c3774a427b3c0000000000000000000000006fa1aff85c0c9aedf387ec8a3f4e13fe8ea70cde000000000000000000000000d2a061247cbbc6bf9ac8b2d0b7a24381418ba40e000000000000000000000000714ee0584d1e88d0d9f510b5c55d3bb286a41ab00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000005bd9c36f000000000000000000000000000000000000000000000000000000005c530d6f",
"confirmations": "586769"
}
]
}
Error : "json unmarshal outcome: json: invalid use of ,string struct tag, trying to unmarshal "" into uint8"
I'll look into resolving this when I wake up. I'm guessing that the empty string should be deserialized into a 0. If you have another idea let me know.