erigon-pulse/cmd/rpcdaemon/services
battlmonstr fc3eecae5e
RPC: admin.peers() (#3960)
* RPC: admin.peers()

This RPC method returns information about the connected remote nodes.
https://geth.ethereum.org/docs/rpc/ns-admin#admin_peers

The peers are collected from all configured sentries.
See: https://github.com/ledgerwatch/interfaces/pull/102

Test with:
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "admin_peers", "params": [], "id":1}' localhost:8545

* save

* liner fix

Co-authored-by: alex.sharov <AskAlexSharov@gmail.com>
2022-04-25 14:40:04 +01:00
..
eth_backend.go RPC: admin.peers() (#3960) 2022-04-25 14:40:04 +01:00
eth_mining.go Use "err" key for logging errors. (#3632) 2022-03-01 15:40:51 +00:00
eth_starknet.go Starknet grpc (#3312) 2022-01-20 15:34:00 +00:00
eth_txpool.go Use "err" key for logging errors. (#3632) 2022-03-01 15:40:51 +00:00