MultiversX Tracker is Live!

Need help with JSON-RPC

Etherum Reddit

More / Etherum Reddit 167 Views

I failed to use JSON-RPC to get the balance of 2 addresses in a query. Can anyone help?

$ curl localhost:8545 -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0", "method":"eth_call", "params":[{"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "data": "0x70a0823100000000000000000000000056325cc1d04957681e7d12485e2a9ba2a5935df5"}, {"to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "data": "0x70a08231000000000000000000000000ccdbd8b74fdadaf298519b3776fa000f8baf2718"}, "latest"], "id":1}' {"jsonrpc":"2.0","id":1,"error":{"code":-32602,"message":"invalid argument 2: json: cannot unmarshal string into Go value of type ethapi.StateOverride"}} 
submitted by /u/notooth1
[link] [comments]
Get BONUS $200 for FREE!

You can get bonuses upto $100 FREE BONUS when you:
πŸ’° Install these recommended apps:
πŸ’² SocialGood - 100% Crypto Back on Everyday Shopping
πŸ’² xPortal - The DeFi For The Next Billion
πŸ’² CryptoTab Browser - Lightweight, fast, and ready to mine!
πŸ’° Register on these recommended exchanges:
🟑 Binance🟑 Bitfinex🟑 Bitmart🟑 Bittrex🟑 Bitget
🟑 CoinEx🟑 Crypto.com🟑 Gate.io🟑 Huobi🟑 Kucoin.



Comments