Choose a Network

Use one of these endpoints as your Ethereum client provider endpoint.

NOTE: Be sure to replace YOUR-PROJECT-IDwith a Project ID from your Dashboard.

Network Description URL
Mainnet JSON-RPC over HTTPs https://cradlegate.com/api/mainnet/YOUR-PROJECT-ID
Ropsten JSON-RPC over HTTPS https://cradlegate.com/api/ropsten/YOUR-PROJECT-ID
Kovan JSON-RPC over HTTPS https://cradlegate.com/api/kovan/YOUR-PROJECT-ID
Rinkeby JSON-RPC over HTTPS https://cradlegate.com/api/rinkeby/YOUR-PROJECT-ID

Make Requests

JSON-RPC Methods

Below is a quick command line example using curl:

# Be sure to replace YOUR-PROJECT-ID with a Project ID from your dashboard
$ curl -X POST
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' \
"https://cradlegate.com/api/mainnet/YOUR-PROJECT-ID"  

The result should look something like this:

$ {"jsonrpc": "2.0","result": "0x657abc", "id":1}

NOTE:"0x657abc" will be replaced with the block number of the most recent block on that network

Read more about JSON-RPC

Subscriptions and Filters

Note that the newer, experimental Ethereum "pub/sub" subscription support is only supported over "stateful" transports such as Websockets. Subscription and filter requests cannotbe made over HTTPS.

Read more about RPC PUB SUB