EnglishDeutsch日本語中文EspañolFrançaisՀայերենNederlandsРусскийItalianoPortuguêsTürkçe포트폴리오 추적기스왑암호화폐가격통합뉴스획득블로그NFT위젯DeFi 포트폴리오 추적기오픈 API24시간 보고서홍보 자료API 문서

Need help with JSON-RPC

상승세:

0

하락세:

0

공유
img

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]
상승세:

0

하락세:

0

공유
한 곳에서 모든 암호화폐, NFT 및 DeFi 를 관리하세요

시작하는 데 사용하는 포트폴리오를 안전하게 연결하세요.