Using RSK Public Nodes (Mainnet & Testnet) provided by IOVLabs
Public Nodes
IOVLabs currently provides two public nodes that you can use for testing purposes, and you will find that information below.
Alternatively, follow the installation instructions, to run your own Rootstock node or use an alternative node provider. This is highly recommended for production environments, and in accordance with the bitcoiners' maxim: Don't trust. Verify.
Testnet
https://public-node.testnet.rsk.co
Mainnet
https://public-node.rsk.co
Supported RPC methods
List of supported JSON-RPC methods for each module can be found in the JSON-RPC documentation.
Example using cURL
Here's an example request using cURL
to get the Mainnet block number:
"Content-Type: application/json"
curl https://public-node.rsk.co \
-X POST -H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
RPC Node Providers
Note that Rootstock public nodes do not expose WebSockets, they are HTTP only. To work around this, you may either run your own Rootstock node, or use a third-party node provider, such as Getblock or NowNodes.