I’m doing some tests.
I’ve a pretty useless contract on rinkeby
https://rinkeby.etherscan.io/address/0x1f6ecb77cd630025eb53b76093883743ab18635b
I’ve a personal account on rinkeby (via metamask)
https://rinkeby.etherscan.io/address/0x8d8d315a5b1bb25e8c0b1566726454fcc11b3647
I’m doing a call using
curl https://rinkeby.infura.io/v3/PROJECT_ID\
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"eth_call","params":[{"from": "0x8d8d315a5b1bb25e8c0b1566726454fcc11b3647","to": "0x1f6ecb77cd630025eb53b76093883743ab18635b","gas": "0x76c0","gasPrice": "0x9184e72a000"},"latest" ],"id":1}'
I get this error
“jsonrpc”:“2.0”,“id”:1,“error”:{“code”:-32602,“message”:“invalid argument 0: hex string has length 52, want 40 for common.Address”}}
What’s the wrong hash, and why it’s wrong?
I double checked on etherscan, and both from
and to
addresses are correct.