# API methods (JSON-RPC, REST, WebSockets, etc.)

Each node has its own set of methods for interaction with the blockchain network. You can find the documentation for each node supported by GetBlock here. Choose the desired node and press the link with the provided method in the “API Docs” section.

For example, you can get information about the last block in the Ethereum network as follows:

JSON RPC

REST

WEBSOCKETS

curl --location --request POST 'https://eth.getblock.io' \
--header 'x-api-key: <YOUR-API-KEY>' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "blockNumber",
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["latest", false]
}'
GetBlock.io

Get access to 40+ blockchain nodes right now! GetBlock provides a fast and reliable connection for the most popular cryptocurrencies` nodes.

Subscribe

Email is invalid

2019 - 2021 GetBlock