Điểm cuối RPC Sonic miễn phí — không cần API key
EVM-compatible
Endpoint
Không cần API key. Chỉ hỗ trợ phương thức ví, giới hạn tốc độ theo IP. Xem phương thức và giới hạn hiện tại tại GET /v1/chains.
Điểm cuối RPC công khai miễn phí
https://api.blockvectra.com/v1/sonic_mainnet/publiccurl -X POST 'https://api.blockvectra.com/v1/sonic_mainnet/public' -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'Giới hạn tốc độ: 3 yêu cầu/giây mỗi IP, burst 20, lô tối đa 10
Giới hạn gửi giao dịch: 1 yêu cầu/giây mỗi IP, burst 3
Phương thức công khai
- 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
Lịch sử công khai: 1,000 khối gần nhất. Đăng ký miễn phí để dùng tín dụng API miễn phí cho các phương thức được chuỗi này hỗ trợ.
JSON-RPC (Khóa trên đường dẫn)
https://api.blockvectra.com/v1/sonic_mainnet/{api_key}JSON-RPC (header: x-api-key)
https://api.blockvectra.com/v1/sonic_mainnetx-api-key: {api_key}WebSocket
WebSocket (Khóa trên đường dẫn)
wss://api.blockvectra.com/v1/sonic_mainnet/{api_key}WebSocket (header: x-api-key hoặc Authorization)
wss://api.blockvectra.com/v1/sonic_mainnetx-api-key: {api_key}
Authorization: Bearer {api_key}Các loại subscription được hỗ trợ
newHeadslogs(bộ lọc phải bao gồm address hoặc topic0)
Thông số mạng
| Chain ID | 146 |
|---|---|
| Điểm cuối RPC công khai miễn phí | https://api.blockvectra.com/v1/sonic_mainnet/public |
| Số phương thức dùng khóa API | 43 |
| Data API | Không được hỗ trợ |
| Hỗ trợ WebSocket | Được hỗ trợ |
| Thông báo Webhook | Không được hỗ trợ |
| Gửi giao dịch | Được hỗ trợ |
| Gửi giao dịch (endpoint công khai không cần key) | Được hỗ trợ |
| Cửa sổ lịch sử trạng thái | Trạng thái lịch sử cho 11,000 khối gần đây nhất |
| Khoảng khối tối đa của eth_getLogs | 1,000 khối |
| Tập dữ liệu Data API | Không được hỗ trợ |
| Các loại subscription được hỗ trợ | newHeads, logs |
| Mạng thử nghiệm liên quan | Không xác định |
| Hướng dẫn liên quan | Không xác định |
Ví dụ nhanh
curl -X POST https://api.blockvectra.com/v1/sonic_mainnet \
-H "Content-Type: application/json" \
-H "x-api-key: {api_key}" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'Giới hạn
| Cửa sổ lịch sử trạng thái | Trạng thái lịch sử cho 11,000 khối gần đây nhất |
|---|---|
| Khoảng khối tối đa của eth_getLogs | 1,000 khối |
| Chính sách phương thức | Cho phép: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceCall, debug_traceTransaction, 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 |
Chọn tác vụ
Theo dõi chuyển stablecoin
Khả dụng một phầnTích hợp cho nhà phát triển và AI Agent
Khả dụngCâu hỏi thường gặp
Sonic RPC có hỗ trợ WebSocket không?
Sonic RPC hỗ trợ kết nối WebSocket. Các loại subscription được hỗ trợ: newHeads, logs.
Sonic RPC có hỗ trợ các phương thức debug không?
Sonic RPC hỗ trợ các phương thức debug, bao gồm: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceCall, debug_traceTransaction.
Giá cả
Nhận 30,000,000 CU khi đăng ký, nạp lại sau mỗi 30 ngày (số dư và giới hạn tốc độ được gộp chung giữa các chuỗi; không cần thẻ tín dụng); tính giá cho mỗi triệu lệnh gọi: eth_blockNumber $0.10, eth_call $1.50, eth_getLogs $3.00.