RPC OP Mainnet gratis & Data API
EVM-compatible
Endpoint
Tanpa API key. Hanya metode dompet, dengan batas laju per IP. Lihat metode dan batas terbaru di GET /v1/chains.
Endpoint RPC publik gratis
https://api.blockvectra.com/v1/op_mainnet/publiccurl -X POST 'https://api.blockvectra.com/v1/op_mainnet/public' -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'Batas laju: 3 req/detik per IP, burst 20, batch maks 10
Batas pengiriman transaksi: 1 req/detik per IP, burst 3
Metode publik
- 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
Riwayat publik: 1,000 blok terakhir. Daftar gratis untuk memakai kredit API gratis pada metode yang didukung rantai ini.
JSON-RPC (Kunci di jalur)
https://api.blockvectra.com/v1/op_mainnet/{api_key}JSON-RPC (header: x-api-key)
https://api.blockvectra.com/v1/op_mainnetx-api-key: {api_key}Data API
https://api.blockvectra.com/v1/data/op_mainnetx-api-key: {api_key}WebSocket
WebSocket (Kunci di jalur)
wss://api.blockvectra.com/v1/op_mainnet/{api_key}WebSocket (header: x-api-key atau Authorization)
wss://api.blockvectra.com/v1/op_mainnetx-api-key: {api_key}
Authorization: Bearer {api_key}Tipe langganan yang didukung
newHeadslogs(filter harus menyertakan address atau topic0)
Parameter Jaringan
| Chain ID | 10 |
|---|---|
| Endpoint RPC publik gratis | https://api.blockvectra.com/v1/op_mainnet/public |
| Jumlah metode dengan kunci API | 39 |
| Data API | Didukung |
| Dukungan WebSocket | Didukung |
| Push Webhook | Tidak didukung |
| Kirim Transaksi | Didukung |
| Kirim Transaksi (Endpoint Publik Tanpa Key) | Didukung |
| Jendela riwayat state | State historis untuk 1,296,000 blok terbaru |
| Rentang blok maksimum eth_getLogs | 1,000 blok |
| Dataset Data API | Blok, Transaksi, Transaksi alamat, Transfer, Metadata token, Kesegaran data |
| Tipe langganan yang didukung | newHeads, logs |
| Testnet terkait | Tidak dikenal |
| Panduan terkait | Tidak dikenal |
Contoh cepat
curl -X POST https://api.blockvectra.com/v1/op_mainnet \
-H "Content-Type: application/json" \
-H "x-api-key: {api_key}" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_blockNumber","params":[]}'Batas
| Jendela riwayat state | State historis untuk 1,296,000 blok terbaru |
|---|---|
| Rentang blok maksimum eth_getLogs | 1,000 blok |
| Kebijakan metode | Diizinkan: 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
Periksa kesegaran data rantai
curl -s "https://api.blockvectra.com/v1/data/op_mainnet/status/freshness" -H "x-api-key: {api_key}"Pilih tugas
Pantau transfer stablecoin
Tersedia sebagianIntegrasi pengembang dan AI Agent
TersediaPertanyaan yang Sering Diajukan
Apakah OP Mainnet RPC mendukung WebSocket?
OP Mainnet RPC mendukung koneksi WebSocket. Tipe langganan yang didukung: newHeads, logs.
Apakah OP Mainnet RPC mendukung metode trace atau debug?
Metode trace dan debug tidak didukung untuk OP Mainnet RPC.
Harga
Dapatkan 30,000,000 CU saat mendaftar, diisi ulang setiap 30 hari (saldo dan batas laju digabungkan di seluruh rantai; tidak memerlukan kartu kredit); harga per satu juta panggilan: eth_blockNumber $0.10, eth_call $1.50, eth_getLogs $3.00.