Overview
Getting Started with GetBlock
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:
Key Features of GetBlock
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.
50+ blockchains in store
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
See full list: https://getblock.io/nodes/ All mainstream RPC interfaces
WebSockets
JSON RPC
GraphQL
REST API
And more to come
Add them in Lego-like manner: https://account.getblock.io/
Industry-leading suite of add-ons and ready-made APIs
DAS API
Firehose
Blockbook
Yellowstone Geyser
Need more? Don’t hesitate to contact sales: https://getblock.io/contact/
Examples for Console REST API Requests
cURL
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:
Python
To run Python examples, ensure Python is installed along with the requests package. You can install the package using the following command:
Example:
JavaScript
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:
Ruby
To execute Ruby examples, install Ruby on your machine. Refer to the official installation guide for details. Confirm installation by running:
Supported networks
We provide APIs for a wide range of networks, including:
Last updated