跳至主要內容

Katana 免費公共 RPC 節點,無需 API key

EVM-compatible

端點

無需 API key,僅開放錢包常用方法,按 IP 限速。 目前的方法與限額以 GET /v1/chains 為準。

免費公共 RPC 端點
https://api.blockvectra.com/v1/katana_mainnet/public
curl -X POST 'https://api.blockvectra.com/v1/katana_mainnet/public' -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
限額:每 IP 每秒 3 次、突發 20、批次 10
發送交易限額:每 IP 每秒 1 次、突發 3
公共方法
  • eth_chainId
  • net_version
  • eth_blockNumber
  • eth_getBalance
  • eth_getTransactionCount
  • eth_getCode
  • eth_getStorageAt
  • eth_call
  • eth_estimateGas
  • eth_gasPrice
  • eth_maxPriorityFeePerGas
  • eth_feeHistory
  • eth_getBlockByNumber
  • eth_getBlockByHash
  • eth_getTransactionByHash
  • eth_getTransactionReceipt
  • eth_syncing
  • web3_clientVersion
  • eth_sendRawTransaction
全部免費公共 RPC 端點
公共歷史視窗:最近 1,000 個區塊。免費註冊後可用免費 API 額度呼叫本鏈開放的方法。
JSON-RPC(路徑 Key)
https://api.blockvectra.com/v1/katana_mainnet/{api_key}
JSON-RPC(請求標頭:x-api-key)
https://api.blockvectra.com/v1/katana_mainnet
x-api-key: {api_key}

WebSocket

WebSocket(路徑 Key)
wss://api.blockvectra.com/v1/katana_mainnet/{api_key}
WebSocket(請求標頭:x-api-key 或 Authorization)
wss://api.blockvectra.com/v1/katana_mainnet
x-api-key: {api_key}
Authorization: Bearer {api_key}
支援的訂閱類型
  • newHeads
  • logs (篩選條件必須包含 address 或 topic0)

網路參數

Chain ID747474
免費公共 RPC 端點https://api.blockvectra.com/v1/katana_mainnet/public
帶 key 方法數39
Data API不支援
WebSocket 支援支援
Webhook 推送不支援
傳送交易支援
傳送交易(免 key 公開端點)支援
歷史狀態保留範圍最近 86,400 個區塊的歷史狀態
eth_getLogs 單次最大區塊跨度1,000 個區塊
Data API 資料集不支援
支援的訂閱類型newHeads、logs
相關測試網未知
相關教學未知

快速範例

curl -X POST https://api.blockvectra.com/v1/katana_mainnet \
  -H "Content-Type: application/json" \
  -H "x-api-key: {api_key}" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'

限制

歷史狀態保留範圍最近 86,400 個區塊的歷史狀態
eth_getLogs 單次最大區塊跨度1,000 個區塊
方法策略
允許:eth_blobBaseFee, eth_blockNumber, eth_call, eth_chainId, eth_createAccessList, eth_estimateGas, eth_feeHistory, eth_gasPrice, eth_getBalance, eth_getBlockByHash, eth_getBlockByNumber, eth_getBlockReceipts, eth_getBlockTransactionCountByHash, eth_getBlockTransactionCountByNumber, eth_getCode, eth_getHeaderByHash, eth_getHeaderByNumber, eth_getLogs, eth_getProof, eth_getRawTransactionByBlockHashAndIndex, eth_getRawTransactionByBlockNumberAndIndex, eth_getRawTransactionByHash, eth_getStorageAt, eth_getTransactionByBlockHashAndIndex, eth_getTransactionByBlockNumberAndIndex, eth_getTransactionByHash, eth_getTransactionCount, eth_getTransactionReceipt, eth_getUncleByBlockHashAndIndex, eth_getUncleByBlockNumberAndIndex, eth_getUncleCountByBlockHash, eth_getUncleCountByBlockNumber, eth_maxPriorityFeePerGas, eth_sendRawTransaction, eth_simulateV1, eth_syncing, net_version, web3_clientVersion, web3_sha3

選擇任務

按鏈上任務選擇解決方案

拿到 key 之後

eth_getLogs

set -eu
MAX_LOGS_BLOCK_RANGE=1000
head=$(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":[]}' | python3 -c 'import json,sys; print(int(json.load(sys.stdin)["result"],16))')
from=$((head >= MAX_LOGS_BLOCK_RANGE ? head - MAX_LOGS_BLOCK_RANGE + 1 : 0))
from_hex=$(printf '0x%x' "$from")
to_hex=$(printf '0x%x' "$head")
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\":\"$from_hex\",\"toBlock\":\"$to_hex\"}]}"
eth_getLogs

WebSocket

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'
WebSocket

常見問題

Katana RPC 是否支援 WebSocket?

Katana RPC 支援 WebSocket 連線,支援的訂閱類型包括:newHeads, logs。

Katana RPC 是否支援 trace 或 debug 方法?

Katana RPC 不支援 trace 或 debug 方法。

計價說明

註冊即享 30,000,000 CU 免費額度(每 30 天自動補足,餘額與速率限制跨鏈合計,無需信用卡);按方法公開定價,每百萬次呼叫:eth_blockNumber $0.10、eth_call $1.50、eth_getLogs $3.00。

檢視定價方案 →