RPC Nodes
Our RPC nodes provide high-performance, reliable access to multiple blockchain networks through standard JSON-RPC interfaces.
API Structure
Access our RPC nodes through our unified API:
POST https://api.jetnodes.com/rpc/<network>/<YOUR-API-KEY>
<network>
: network identifier are listed on the table below for every blockchain we support.
Authentication
The API key must be provided as part of the URL path. It should be appended directly to the URL after the network identifier:
POST https://api.jetnodes.com/rpc/<network>/<YOUR-API-KEY>
Supported Networks
Blockchain | Network | Description |
---|---|---|
Bitcoin | btc | Bitcoin mainnet network |
Bitcoin Testnet | btc-testnet | Bitcoin testnet network |
Ethereum | eth | Ethereum mainnet network |
Ethereum Sepolia | eth-sepolia | Ethereum testnet network |
Ethereum
Networks
- Mainnet:
eth
(Chain ID: 1) - Goerli Testnet:
eth-goerli
(Chain ID: 5) - Sepolia Testnet:
eth-sepolia
(Chain ID: 11155111)
Client Examples
// Example: Node.js with web3.js
const Web3 = require('web3')
// Create a new HTTP provider.
const provider = new Web3.providers.HttpProvider(`https://api.jetnodes.com/rpc/eth/${YOUR-API-KEY}`)
const web3 = new Web3(provider)
// Call an Ethereum JSON-RPC method (e.g., eth_blockNumber)
web3.eth.getBlockNumber()
.then((blockNumber) => {
console.log('Latest Ethereum block number:', blockNumber)
})
.catch((error) => {
console.error('Error fetching block number:', error)
})
Bitcoin
Networks
- Mainnet:
btc
- Testnet:
btc-test
Client Examples
// Example: Node.js with bitcoin-core
const Client = require('bitcoin-core');
const client = new Client({
url: `https://api.jetnodes.com/rpc/btc/${YOUR-API-KEY}`,
});
client.getBlockCount()
.then((blockCount) => {
console.log('Latest Bitcoin block count:', blockCount);
})
.catch((error) => {
console.error('Error fetching block count:', error);
});