-
Notifications
You must be signed in to change notification settings - Fork 267
RSK public nodes
Alejandro Cavallero edited this page Oct 11, 2019
·
5 revisions
RSK is currently providing two public nodes for testing purposes:
- https://public-node.testnet.rsk.co (Testnet)
- https://public-node.rsk.co (Mainnet)
Current and previous versions are accesible through this routing:
-
/
: version1.0.2
. -
/1.1.0
,/1.1.0/
: current version1.1.0
. -
/1.0.2
,/1.0.2/
: version1.0.2
.
Eventually, the use of only /
will be deprecated.
These nodes are supporting the following JSON RPC methods:
Method |
---|
net_version |
net_listening |
net_peerCount |
eth_protocolVersion |
eth_hashrate |
eth_mining |
eth_call |
eth_estimateGas |
eth_gasPrice |
eth_blockNumber |
eth_getBalance |
eth_getBlockByHash |
eth_getBlockByNumber |
eth_getBlockTransactionCountByHash |
eth_getBlockTransactionCountByNumber |
eth_getCode |
eth_getStorageAt |
eth_getTransactionByBlockHashAndIndex |
eth_getTransactionByBlockNumberAndIndex |
eth_getTransactionByHash |
eth_getTransactionCount |
eth_getTransactionReceipt |
eth_getUncleByBlockHashAndIndex |
eth_getUncleByBlockNumberAndIndex |
eth_getUncleCountByBlockHash |
eth_getUncleCountByBlockNumber |
eth_sendRawTransaction |
Note: request headers must contain
"Content-Type: application/json"
Here's an example request using cURL
to get the Mainnet block number:
$ curl https://public-node.rsk.co\
-X POST -H "Content-Type: application/json"\
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'