Comment on page
🧰
Getting started
Access to our general-purpose endpoints require an API key, which can be acquired from our dashboard: https://dashboard.fiews.io/
Network | Endpoint URL |
Ethereum Mainnet | https://mainnet.ethereum.api.fiews.io/v2/rpc/<YOUR_API_KEY> |
Ethereum Mainnet (WS) | wss://mainnet.ethereum.api.fiews.io/v2/ws/<YOUR_API_KEY> |
A simple request using cURL is shown below. This request will call the
net_version
method, which gets the ID of the network.curl https://mainnet.ethereum.api.fiews.io/v2/rpc/<YOUR_API_KEY> -d \
'{"jsonrpc":"2.0","id":"1","method":"net_version","params":[]}'
The response from this call should be:
{"jsonrpc":"2.0","id":"1","result":"1"}
The result, 1, indicates that we are connected to the Ethereum testnet.Last modified 2yr ago