Quickstart
This guide will get you all set up and ready to use the Jetnodes API. We'll cover how to get started creating your API Key and how to make your first API request. We'll also look at where to go next to find all the information you need to take full advantage of our blockchain infrastructure.
Create a Project
- Sign up for a Jetnodes account
- Navigate to the dashboard
- Click "Create New Project"
- Your API key will be generated automatically
API Structure
Our API follows a consistent structure:
https://api.jetnodes.com/<product>/<network>/
<product>
: Eitherrpc
orblockbook
<network>
: The blockchain network (e.g.,btc
,eth
)
Authentication
-
For Blockbook endpoints, all API requests must include your API key in the header:
Blockbook authentication
api-key: YOUR-API-KEY
-
For RPC endpoints, the API key must be provided as part of the URL path. It should be appended directly to the URL after the network identifier.
RPC authentication
POST https://api.jetnodes.com/rpc/<network>/<YOUR-API-KEY>
Never share your API key or commit it to version control. Keep it secure and use environment variables in your applications.
Making your first API request
Replace YOUR-API-KEY with the one you creted on the dashboard.
RPC Node Example
# cURL is most likely already installed on your machine
curl -X POST https://api.jetnodes.com/rpc/btc/{YOUR-API-KEY} \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "getblockcount",
"params": [],
"id": 1
}'
Blockbook API Example
# cURL is most likely already installed on your machine
curl https://api.jetnodes.com/blockbook/btc/api/status \
-H "api-key: YOUR-API-KEY"