August 2018
Intermediate to advanced
404 pages
11h 19m
English
We will now learn how to use JSON-RPC to interact with Ethereum:
{ "jsonrpc":"2.0", "method":"", // method identifier "params":[], // list of parameters "id":0 // id}
curl -X POST --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":74}' http://localhost:8545
{
"id":74,
"jsonrpc": "2.0",
"result": "0x2" // 2
}
Read now
Unlock full access