When I try to call balanceOf
on eth_call
, returns execution reverted
.
I don’t understand because balanceOf
is a view function.
In documentation, there are a method limitation to prevent abusive of the API, but I don’t know how to calculate the correct gas
.
My JSON request (Rinkeby):
{ "jsonrpc":"2.0", "method":"eth_call", "id":1, "params: [ {"from":"0xD8F7E3adb3C93739b2600E7180D2DFaeCFa3b4E9", "to":"0x6e724351f7d94E47B2c05d69f3bCF97094482d6f", "gas":"0x5f5e100", "gasprice":"0x3b9aca00", "value":"0x0", "data":"0x70a082310000000000000000D8F7E3adb3C93739b2600E7180D2DFaeCFa3b4E9"}, "latest" ] }