ข้ามไปยังเนื้อหาหลัก
BlockVectra

RPC Gnosis ฟรี & Data API

EVM-compatible

Endpoint

ไม่ต้องใช้ API key รองรับเฉพาะเมธอดกระเป๋าเงิน มีการจำกัดอัตราต่อ IP ตรวจสอบ GET /v1/chains สำหรับเมธอดและขีดจำกัดปัจจุบัน

endpoint RPC สาธารณะฟรี
https://api.blockvectra.com/v1/gnosis_mainnet/public
curl -X POST 'https://api.blockvectra.com/v1/gnosis_mainnet/public' -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'
ขีดจำกัดอัตรา: 3 req/s ต่อ IP, burst 20, แบทช์สูงสุด 10
ขีดจำกัดการส่งธุรกรรม: 1 req/s ต่อ IP, burst 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
endpoint RPC สาธารณะฟรีทั้งหมด
ประวัติสาธารณะ: 1,000 บล็อกล่าสุด ลงทะเบียนฟรี เพื่อใช้เครดิต API ฟรีสำหรับเมธอดที่รองรับของเชนนี้
JSON-RPC (คีย์ใน Path)
https://api.blockvectra.com/v1/gnosis_mainnet/{api_key}
JSON-RPC (Header: x-api-key)
https://api.blockvectra.com/v1/gnosis_mainnet
x-api-key: {api_key}
Data API
https://api.blockvectra.com/v1/data/gnosis_mainnet
x-api-key: {api_key}

พารามิเตอร์เครือข่าย

Chain ID100
endpoint RPC สาธารณะฟรีhttps://api.blockvectra.com/v1/gnosis_mainnet/public
จำนวนเมธอดที่ใช้ API key39
Data APIรองรับ
การรองรับ WebSocketไม่รองรับ
Webhook pushไม่รองรับ
ส่งธุรกรรมรองรับ
ส่งธุรกรรม (endpoint สาธารณะแบบไม่ต้องใช้ API key)รองรับ
ช่วงประวัติสถานะสถานะย้อนหลังสำหรับ 262,000 บล็อกล่าสุด
ช่วงบล็อกสูงสุดของ eth_getLogs1,000 บล็อก
ชุดข้อมูล Data APIบล็อก, ธุรกรรม, ธุรกรรมของแอดเดรส, การโอน, เมทาดาตาของโทเค็น, ความสดใหม่ของข้อมูล
ประเภท subscription ที่รองรับไม่รองรับ
testnet ที่เกี่ยวข้องไม่ระบุ
คู่มือที่เกี่ยวข้องไม่ระบุ

ตัวอย่างการใช้งานแบบเร็ว

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

ขีดจำกัด

ช่วงประวัติสถานะสถานะย้อนหลังสำหรับ 262,000 บล็อกล่าสุด
ช่วงบล็อกสูงสุดของ eth_getLogs1,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

Data API

ตรวจสอบความสดใหม่ของข้อมูลเชน

curl -s "https://api.blockvectra.com/v1/data/gnosis_mainnet/status/freshness" -H "x-api-key: {api_key}"

ดูคู่มือชุดข้อมูล →

ดูเอกสาร Data API →

เลือกงาน

โซลูชันสำหรับงานออนเชนของคุณ

ขั้นตอนถัดไปเมื่อมี API key

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" logs
eth_getLogs

Data API

curl -fsS 'https://api.blockvectra.com/v1/data/gnosis_mainnet/status/freshness' -H "x-api-key: $BLOCKVECTRA_API_KEY"
Data API

คำถามที่พบบ่อย

Gnosis RPC รองรับ WebSocket หรือไม่?

Gnosis RPC ไม่รองรับการเชื่อมต่อ WebSocket

Gnosis RPC รองรับเมธอด trace และ debug หรือไม่?

ไม่รองรับเมธอด trace และ debug สำหรับ Gnosis RPC

ราคา

รับ 30,000,000 CU เมื่อลงทะเบียน และเติมใหม่ทุก 30 วัน (ยอดคงเหลือและขีดจำกัดอัตรารวมกันข้ามเชน ไม่ต้องใช้บัตรเครดิต) ราคาต่อหนึ่งล้านครั้งที่เรียกใช้: eth_blockNumber $0.10, eth_call $1.50, eth_getLogs $3.00

ดูแผนราคา →