Поддерживаемые сети
Поддерживаемые сети блокчейна, Chain ID, структуры URL и доступность возможностей. Обзор эндпоинтов, методов и покрытия наборов данных по каждой сети.
BlockVectra — это мультичейн-провайдер блокчейн-данных: JSON-RPC во всех поддерживаемых сетях и Data API там, где он доступен.
Один ключ для всех сетей
- Универсальный ключ: один и тот же API key работает во всех поддерживаемых сетях BlockVectra — отдельные ключи для каждой сети не требуются.
- Сеть в URL: каждый запрос явно указывает сеть с помощью сегмента пути
{chain}. - Общий учет: баланс аккаунта, корзины лимитов Compute Units (CU) и посекундные лимиты бесплатного тарифа действуют совместно для всех сетей.
- Цены: см. раздел Цены.
Тестирование без API key
Выберите бесплатный публичный эндпоинт RPC для вызова методов кошелька без API key. Публичные методы и лимиты на IP указаны для каждой сети; пример вызова см. в разделе Быстрый старт.
Шаблоны URL
Стандартные структуры URL для вызова JSON-RPC и Data API:
| Сервис | Режим | Шаблон URL | Примечания |
|---|---|---|---|
| JSON-RPC | Ключ в пути | POST /v1/{chain}/{api_key} | Простейший формат; рекомендуется для curl и HTTP-клиентов |
| JSON-RPC | Ключ в заголовке | POST /v1/{chain} | Передавайте ключ в заголовке запроса x-api-key: {api_key} |
| Data API | REST-эндпоинты | GET /v1/data/{chain}/… | Передавайте ключ в заголовке запроса x-api-key |
| Статус | Публичный статус | GET /v1/status | Ключ не требуется; возвращает статус и вершину каждой публичной сети |
Примечание: запрос без сегмента сети (например,
POST /v1илиPOST /v1/) возвращает HTTP 404 с пустым телом. Подробности настройки см. в разделе Быстрый старт.
Матрица поддерживаемых сетей
Сети блокчейна, доступные на данный момент в BlockVectra, и возможности их сервисов:
Эндпоинты, методы с API key, подписки, отправка транзакций, лимиты состояния и логов, наборы данных, связанные тестнеты и руководства представлены для каждой сети. Неизвестные данные остаются неуказанными. Разверните сеть под матрицей, чтобы увидеть поддерживаемые ею запросы.
| Сеть | {chain} | Chain ID | Tracing | Публичный эндпоинт | WebSocket | Data API | Число методов с API key | Webhook-уведомления | Отправка транзакций | Отправка транзакций (публичная конечная точка без key) | Окно истории состояния | Максимальный диапазон блоков для eth_getLogs | Наборы данных Data API | Связанные тестовые сети | Связанные руководства |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| arb_mainnet: RPC и Data API | arb_mainnet | 42161 | ✓ | https://api.blockvectra.com/v1/arb_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 43 | Поддерживается · Подтверждения 1–120 (по умолчанию 120) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Историческое состояние за последние 5,000 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Неизвестно |
| arc_mainnet: RPC | arc_mainnet | 5042 | — | https://api.blockvectra.com/v1/arc_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Неизвестно | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| avax_mainnet: RPC | avax_mainnet | 43114 | ✓ | https://api.blockvectra.com/v1/avax_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 41 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 128 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| base_mainnet: RPC и Data API | base_mainnet | 8453 | — | https://api.blockvectra.com/v1/base_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 39 | Поддерживается · Подтверждения 1–519 (по умолчанию 1) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Историческое состояние за последние 10,000 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Base |
| berachain_mainnet: RPC | berachain_mainnet | 80094 | — | https://api.blockvectra.com/v1/berachain_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 9,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| boba_mainnet: RPC | boba_mainnet | 288 | — | https://api.blockvectra.com/v1/boba_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 80,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| bsc_mainnet: RPC и Data API | bsc_mainnet | 56 | — | https://api.blockvectra.com/v1/bsc_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 25 | Поддерживается · Подтверждения 1–2 (по умолчанию 1) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Историческое состояние за последние 100 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Неизвестно |
| celo_mainnet: RPC | celo_mainnet | 42220 | — | https://api.blockvectra.com/v1/celo_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 864,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| Ethereum: RPC и Data API | eth_mainnet | 1 | ✓ | https://api.blockvectra.com/v1/eth_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 38 | Поддерживается · Подтверждения 1–82 (по умолчанию 6) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Историческое состояние за последние 250,000 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Неизвестно |
| eth_sepolia: RPC и Data API | eth_sepolia | 11155111 | — | https://api.blockvectra.com/v1/eth_sepolia/public | Поддерживается (newHeads, logs) | Доступно | 29 | Поддерживается · Подтверждения 1–67 (по умолчанию 6) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Неизвестно | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Неизвестно |
| fraxtal_mainnet: RPC | fraxtal_mainnet | 252 | — | https://api.blockvectra.com/v1/fraxtal_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 10,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| gnosis_mainnet: RPC и Data API | gnosis_mainnet | 100 | — | https://api.blockvectra.com/v1/gnosis_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 262,000 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Неизвестно |
| HyperEVM: RPC и Data API | hyperevm_mainnet | 999 | — | https://api.blockvectra.com/v1/hyperevm_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 25 | Поддерживается · Подтверждения 1–1 (по умолчанию 1) Руководство по Webhook-уведомлениям | Поддерживается | Не поддерживается | Неизвестно | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Выгрузка и опрос HyperEVM |
| ink_mainnet: RPC | ink_mainnet | 57073 | — | https://api.blockvectra.com/v1/ink_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 9,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Ink pool discovery |
| katana_mainnet: RPC | katana_mainnet | 747474 | — | https://api.blockvectra.com/v1/katana_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 86,400 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| linea_mainnet: RPC | linea_mainnet | 59144 | — | https://api.blockvectra.com/v1/linea_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 128 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| metall2_mainnet: RPC | metall2_mainnet | 1750 | — | https://api.blockvectra.com/v1/metall2_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 10,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| mode_mainnet: RPC | mode_mainnet | 34443 | — | https://api.blockvectra.com/v1/mode_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 10,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| op_mainnet: RPC и Data API | op_mainnet | 10 | — | https://api.blockvectra.com/v1/op_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 1,296,000 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Неизвестно |
| polygon_mainnet: RPC и Data API | polygon_mainnet | 137 | ✓ | https://api.blockvectra.com/v1/polygon_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 43 | Поддерживается · Подтверждения 1–200 (по умолчанию 200) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Историческое состояние за последние 126 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свежесть данных | Неизвестно | Неизвестно |
| Robinhood Chain: RPC и Data API | robinhood_mainnet | 4663 | ✓ | https://api.blockvectra.com/v1/robinhood_mainnet/public | Поддерживается (newHeads, logs) | Доступно | 43 | Поддерживается · Подтверждения 1–1 (по умолчанию 1) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Историческое состояние за последние 900 блоков | 1,000 блоков | Блоки, Транзакции, Транзакции адреса, Переводы, Метаданные токенов, Свопы DEX, Токенизированные акции, Трассировки, Свежесть данных | Неизвестно | HoodFi name records Robinhood Chain Мультипликатор токенов акций Токенизированные акции |
| robinhood_testnet: RPC | robinhood_testnet | 46630 | ✓ | https://api.blockvectra.com/v1/robinhood_testnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 43 | Поддерживается · Подтверждения 1–1 (по умолчанию 1) Руководство по Webhook-уведомлениям | Поддерживается | Поддерживается | Историческое состояние за последние 1,023 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Кран testnet Стартовый шаблон Robinhood Chain Testnet |
| rootstock_mainnet: RPC | rootstock_mainnet | 30 | — | https://api.blockvectra.com/v1/rootstock_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 27 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 6,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| soneium_mainnet: RPC | soneium_mainnet | 1868 | — | https://api.blockvectra.com/v1/soneium_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 9,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| sonic_mainnet: RPC | sonic_mainnet | 146 | ✓ | https://api.blockvectra.com/v1/sonic_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 43 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 11,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| unichain_mainnet: RPC | unichain_mainnet | 130 | — | https://api.blockvectra.com/v1/unichain_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 85,500 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| world_mainnet: RPC | world_mainnet | 480 | — | https://api.blockvectra.com/v1/world_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 30,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| xlayer_mainnet: RPC | xlayer_mainnet | 196 | ✓ | https://api.blockvectra.com/v1/xlayer_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 43 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 250,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
| zora_mainnet: RPC | zora_mainnet | 7777777 | — | https://api.blockvectra.com/v1/zora_mainnet/public | Поддерживается (newHeads, logs) | Пока недоступно | 39 | Не поддерживается | Поддерживается | Поддерживается | Историческое состояние за последние 10,000 блоков | 1,000 блоков | Не поддерживается | Неизвестно | Неизвестно |
Следующие шаги с API key
arb_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/arb_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/arb_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/arb_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/arb_mainnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
arc_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/arc_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/arc_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/arc_mainnet'WebSocketavax_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/avax_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/avax_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/avax_mainnet'WebSocketbase_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/base_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/base_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/base_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/base_mainnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
berachain_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/berachain_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/berachain_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/berachain_mainnet'WebSocketboba_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/boba_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/boba_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/boba_mainnet'WebSocketbsc_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/bsc_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/bsc_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/bsc_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/bsc_mainnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
celo_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/celo_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/celo_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/celo_mainnet'WebSocketEthereum
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/eth_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/eth_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/eth_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/eth_mainnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
eth_sepolia
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/eth_sepolia' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/eth_sepolia' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/eth_sepolia/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/eth_sepolia'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
fraxtal_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/fraxtal_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/fraxtal_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/fraxtal_mainnet'WebSocketgnosis_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/gnosis_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/gnosis_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/gnosis_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/gnosis_mainnet'WebSocketHyperEVM
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/hyperevm_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/hyperevm_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/hyperevm_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/hyperevm_mainnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
ink_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/ink_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/ink_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/ink_mainnet'WebSocketkatana_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/katana_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/katana_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/katana_mainnet'WebSocketlinea_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/linea_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/linea_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/linea_mainnet'WebSocketmetall2_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/metall2_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/metall2_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/metall2_mainnet'WebSocketmode_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/mode_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/mode_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/mode_mainnet'WebSocketop_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/op_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/op_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/op_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/op_mainnet'WebSocketpolygon_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/polygon_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/polygon_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/polygon_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/polygon_mainnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
Robinhood Chain
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/robinhood_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/robinhood_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsData API
curl -fsS 'https://api.blockvectra.com/v1/data/robinhood_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"Data APIWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/robinhood_mainnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
robinhood_testnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/robinhood_testnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/robinhood_testnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/robinhood_testnet'WebSocketСоздать подписку Webhook · Создать подписку Webhook · Использование и CU · Пополнить баланс
rootstock_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/rootstock_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/rootstock_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/rootstock_mainnet'WebSocketsoneium_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/soneium_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/soneium_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/soneium_mainnet'WebSocketsonic_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/sonic_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/sonic_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/sonic_mainnet'WebSocketunichain_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/unichain_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/unichain_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/unichain_mainnet'WebSocketworld_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/world_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/world_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/world_mainnet'WebSocketxlayer_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/xlayer_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/xlayer_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/xlayer_mainnet'WebSocketzora_mainnet
eth_getLogs
set -eu
: "${BLOCKVECTRA_API_KEY:?BLOCKVECTRA_API_KEY is required}"
validate_response='import json,re,sys
response=json.load(sys.stdin)
if not (type(response) is dict and response.get("jsonrpc")=="2.0" and type(response.get("id")) is int and response["id"]==1 and "error" not in response and "result" in response):
sys.exit("Invalid JSON-RPC response")
result=response["result"]
if sys.argv[1]=="head":
if not (type(result) is str and re.fullmatch(r"0x(?:0|[1-9a-fA-F][0-9a-fA-F]*)",result)):
sys.exit("Invalid block quantity")
print(result)
else:
if not (type(result) is list and all(type(log) is dict for log in result)):
sys.exit("Invalid logs result")
print(json.dumps(response,indent=2))'
head_response=$(curl -fsS 'https://api.blockvectra.com/v1/zora_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}')
head=$(printf '%s' "$head_response" | python3 -c "$validate_response" head)
logs_response=$(curl -fsS 'https://api.blockvectra.com/v1/zora_mainnet' -H "x-api-key: $BLOCKVECTRA_API_KEY" -H 'Content-Type: application/json' \
-d "{\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"eth_getLogs\",\"params\":[{\"fromBlock\":\"$head\",\"toBlock\":\"$head\"}]}")
printf '%s' "$logs_response" | python3 -c "$validate_response" logseth_getLogsWebSocket
echo '{"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}' | websocat --no-close -H="x-api-key: $BLOCKVECTRA_API_KEY" 'wss://api.blockvectra.com/v1/zora_mainnet'WebSocketHyperEVM
Блоки HyperEVM включают системные транзакции HyperCore (с адреса 0x2222…2222 или 0x20…, gasPrice 0).
Нужна другая сеть? Сообщите нам →
Ethereum
- Chain ID:
1 - Имя сети (
{chain}в URL):eth_mainnet, напримерPOST /v1/eth_mainnet/{api_key}илиGET /v1/data/eth_mainnet/….
JSON-RPC
- Методы: доступные методы для каждой сети определяются полями
methods.allow/denyвGET /v1/chains(см. Политика методов); методы вне этого списка возвращают-32601. - Только недавние данные: окно исторического состояния определяется значением
state_window_blocksвGET /v1/chains. Запросы исторического состояния за пределами окна возвращают-32011(не тарифицируется); запросы блоков, квитанций и логов за пределами окна возвращают-32000 "old data not available due to pruning"(не тарифицируется); запрос транзакции по хешу за пределами окна возвращаетresult: null. eth_getLogs: максимальный диапазон блоков на один запрос равен значениюmax_logs_block_rangeвGET /v1/chains.
Data API
- Только недавние данные: покрытие данных Ethereum определяется полем
coverage.from_blockвGET /v1/data/chains. Номер блока или окно до начала диапазона возвращает422 no_coverage; хеш транзакции, вышедший за пределы окна, возвращает404. - Если
from_blockравенnull: начальная точка временно неизвестна. Не интерпретируйте это значение как0или полную историю и не отправляйте исторические запросы (по номеру блока, окну или хешу) для Ethereum, пока оно снова не станет целым числом; такие запросы возвращают503 unavailable. 503 gateway_overloaded: повторите попытку с задержкой (Retry-After: 1).- Наборы данных: наборы данных, доступные для Ethereum, перечислены в
featuresвGET /v1/data/chains; остальные возвращают422 no_coverage(не тарифицируется). Транзакции по адресам и переводы охватывают только недавнее окно: ответ, выходящий за его начало, помечается какmeta.coverage: "partial".
Программный поиск сетей
Используйте эти публичные эндпоинты для получения информации о поддерживаемых сетях и их статусе:
1. Статус сервиса (GET /v1/status)
Публичный эндпоинт, не требующий API key (CORS *). Он возвращает только общедоступные сети, их статус и индексированную вершину:
curl -s "https://api.blockvectra.com/v1/status"Пример ответа:
{
"checked_at": "2026-09-28T07:40:00Z",
"gateway": { "status": "ok" },
"chains": [
{
"chain": "robinhood_mainnet",
"name": "Robinhood Chain",
"chain_id": 4663,
"jsonrpc": true,
"data": true,
"status": "ok",
"data_status": "ok",
"sync": { "stage": "synced", "node_block": 74600000, "target_block": null },
"head": {
"block": 74600000,
"time": "2026-09-28T07:39:58Z",
"lag_seconds": 3
}
},
{
"chain": "eth_mainnet",
"name": "Ethereum",
"chain_id": 1,
"jsonrpc": true,
"data": true,
"status": "ok",
"data_status": "ok",
"sync": { "stage": "synced", "node_block": 26010000, "target_block": null },
"head": {
"block": 26010000,
"time": "2026-09-28T07:39:59Z",
"lag_seconds": 1
}
}
]
}Поле name каждой записи всегда содержит английское отображаемое имя сети. Поля jsonrpc и data сообщают, доступна ли эта сеть для JSON-RPC и Data API соответственно; status принимает значение "ok" или "unavailable". Если сеть синхронизируется, запросы к ней возвращают -32010. В /v1/status поле status отражает работоспособность JSON-RPC, а data_status — работоспособность Data API ("ok", "syncing" или "unavailable"); в /v1/data/chains значение coverage.has_data, равное false, означает, что для сети пока нет индексированных данных.
2. Сети Data API (GET /v1/data/chains)
Требует API key в заголовке x-api-key (тарифицируется). Возвращает публичные сети, обслуживаемые Data API, с указанием поддерживаемых данных (features), диапазона блоков (coverage), меток консенсуса узла safe/finalized и их состояния (finality), а также лимитов на запрос (limits):
curl -s "https://api.blockvectra.com/v1/data/chains" \
-H "x-api-key: $BLOCKVECTRA_API_KEY"Пример ответа:
{
"data": [
{
"chain": "robinhood_mainnet",
"chain_slug": "ROBINHOOD_MAINNET",
"name": "Robinhood Chain",
"chain_id": 4663,
"chain_external_id": "eip155:4663",
"features": [
"blocks", "transactions", "address_transactions", "transfers", "token_metadata",
"balances", "holders", "nfts", "dex_swaps", "dex_prices", "stocks", "traces", "freshness"
],
"coverage": { "from_block": 0, "traces_from_block": 1000000, "has_data": true },
"finality": { "model": "node_tags", "status": "ok", "safe_block": 74599400, "finalized_block": 74598900 },
"limits": { "max_page_size": 500, "max_window_blocks": 100000, "max_pools_for_token": 200, "max_batch_addresses": 100 }
},
{
"chain": "eth_mainnet",
"chain_slug": "ETH_MAINNET",
"name": "Ethereum",
"chain_id": 1,
"chain_external_id": "eip155:1",
"features": ["blocks", "transactions", "address_transactions", "transfers", "token_metadata", "freshness"],
"coverage": { "from_block": 1000000, "traces_from_block": null, "has_data": true },
"finality": { "model": "node_tags", "status": "stale", "safe_block": 26009950, "finalized_block": 26009900 },
"limits": { "max_page_size": 500, "max_window_blocks": 100000, "max_pools_for_token": 200, "max_batch_addresses": 100 }
}
]
}Объект finality передает метки консенсуса узла (model имеет значение "node_tags"), состояние меток (status принимает значения "ok", "stale" или "unavailable"), а также текущие safe_block и finalized_block (safe_block >= finalized_block, и оба равны null только в случае, если status равен "unavailable").
Поле coverage.from_block — это наименьший проиндексированный блок, считываемый в реальном времени. Оно равно 0, если история сети доходит до блока генезиса. Значение может быть null только в случае, если сеть вообще не имеет проиндексированных блоков (has_data = false), либо пока начальная точка не может быть определена: рассматривайте null как неизвестное значение — а не как полную историю и не как 0 — и исторические запросы в этом случае возвращают 503 unavailable. Всегда получайте это значение из эндпоинта во время выполнения программы, а не прописывайте жестко в коде. coverage.traces_from_block — это первый блок с данными трассировки; запрос трассировки до него или в пределах пропуска возвращает 422 no_coverage (не тарифицируется).
Вызов /v1/data/{chain}/… с неизвестной или непубличной сетью возвращает HTTP 404 с error.code not_found (не тарифицируется; имя сети должно быть точным слагом в нижнем регистре).
Последнее обновление:
Обзор
Документация по мультичейн JSON-RPC и Data API. Используйте один ключ для всех поддерживаемых сетей: быстрый старт, справочник API, наборы данных и правила тарификации.
Справочник ошибок
Коды ошибок BlockVectra, правила тарификации и инструкции по повторным попыткам для JSON-RPC, Data API, Push-вебхуков, консоли и крана, включая диапазоны блоков eth_getLogs и ошибки повторной отправки вебхуков.