Last updated
Last updated
To get started, follow these steps:
Sign up: Create an account to access your Access Token.
Generate access token: Navigate to the dashboard, and generate your first access token for API authentication.
Choose the blockchain name and type: Select the blockchain network you want to interact with, set up testnet/mainnet, and choose the interface youâre going to use.
Send your first request:
GetBlock is offering one of the most comprehensive APIs toolkits in the segment supporting hundreds of dApps with fast and reliable connection to blockchain nodes.
Seamless connection to full and archive nodes
Shared and dedicated nodes: Tailored for your dAppâs needs.
Programmable and non-programmable blockchains
L1 and L2 protocols
EVM and non-EVM networks
WebSockets
JSON RPC
GraphQL
REST API
And more to come
DAS API
Firehose
Blockbook
Yellowstone Geyser
Most *nix-based systems come with cURL pre-installed. cURL is a command-line tool and library for transferring data with URLs. To check if cURL is installed, run the following command:
Example of requesting the latest block number using the GetBlock API and cURL:
To run Python examples, ensure Python is installed along with the requests package. You can install the package using the following command:
Example:
For JavaScript examples, you'll need Node.js version 18 or later. Follow the official documentation to install the latest stable version globally. Verify your installation by running:
To execute Ruby examples, install Ruby on your machine. Refer to the official installation guide for details. Confirm installation by running:
We provide APIs for a wide range of networks, including:
See full list: All mainstream RPC interfaces
Add them in Lego-like manner:
Need more? Donât hesitate to contact sales: