Infura

New projects

Existing projects can skip ahead to the next section.

Since Infura is used as an origin when responses are not found in the cache, an Infura account is required.

Create an account on Infura and follow this link to generate credentials.

Choose a network

Choose a Ethereum Blockchain Network you want to connect to and use the corresponding endpoint to conenct.

Network URL
Mainnet mainnet.infura.marlin.pro/v3/<PROJECT_ID>

Make requests

The URLs above are a drop-in replacement for Infura's URLs and can be used exactly like Infura endpoints in the tool of your choice (web3.js, curl, etc). The cache automatically takes care of proxying requests to Infura in case of a cache miss.

Here's an example using curl:

# Replace NETWORK_URL with url of the chosen network
curl -X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "id": 0, "method": "eth_blockNumber", "params": []}' \
"<NETWORK_URL>"

The response would look something like:

# Block_number will be current block number in hex
{"jsonrpc": "2.0","result": "0x<Block_number>", "id":0}