EVM JSON-RPC 方法
BlockReq 通过 HTTPS 与 WebSocket 支持标准 EVM JSON-RPC。下表按常见 Core RPC API 类别组织,并标注 Archive、Trace、Debug、Txpool 或 WSS 能力要求。
Archive 支持按链生效。依赖旧区块状态、Proof、Debug 或 Trace 调用前,请先在公开链页面和 Dashboard 链列表确认该路由已经验证为 Archive。
计费见 Request Counting。本页只描述方法可用性与能力要求。
Chain 与 Web3
| 方法 | 范围 | 说明 |
|---|---|---|
eth_chainId | HTTPS/WSS | 返回当前 chain ID。 |
eth_syncing | HTTPS/WSS | 返回同步状态。 |
net_version | HTTPS/WSS | 返回网络 ID。 |
net_listening | HTTPS/WSS | 返回监听状态。 |
net_peerCount | HTTPS/WSS | 该链提供时返回 peer 数。 |
web3_clientVersion | HTTPS/WSS | 返回客户端版本字符串。 |
web3_sha3 | HTTPS/WSS | 返回 Keccak-256 hash。 |
Account 与 State
| 方法 | 范围 | 说明 |
|---|---|---|
eth_getBalance | Latest 或 Archive | 旧区块 tag 需要 Archive 路由。 |
eth_getCode | Latest 或 Archive | 旧区块 tag 需要 Archive 路由。 |
eth_getStorageAt | Latest 或 Archive | 按 block tag 读取 storage slot。 |
eth_getProof | Archive/proof | 返回账户与 storage Merkle proof。 |
eth_getTransactionCount | Latest 或 Archive | 旧区块 tag 需要 Archive 路由。 |
eth_call | Latest 或 Archive | 历史调用需要 Archive state。 |
Blocks
| 方法 | 范围 | 说明 |
|---|---|---|
eth_blockNumber | HTTPS/WSS | 最新区块号。 |
eth_getBlockByNumber | HTTPS/WSS | 按区块号或 tag 查询区块。 |
eth_getBlockByHash | HTTPS/WSS | 按 hash 查询区块。 |
eth_getBlockTransactionCountByNumber | HTTPS/WSS | 按区块号返回交易数。 |
eth_getBlockTransactionCountByHash | HTTPS/WSS | 按区块 hash 返回交易数。 |
eth_getBlockReceipts | Heavy/history | 该链支持时返回区块内全部 receipt。 |
Transactions
| 方法 | 范围 | 说明 |
|---|---|---|
eth_getTransactionByHash | HTTPS/WSS | 按 hash 查询交易。 |
eth_getTransactionByBlockNumberAndIndex | HTTPS/WSS | 按区块号和 index 查询交易。 |
eth_getTransactionByBlockHashAndIndex | HTTPS/WSS | 按区块 hash 和 index 查询交易。 |
eth_getTransactionReceipt | HTTPS/WSS | 查询交易 receipt。 |
eth_sendRawTransaction | HTTPS | 广播已签名交易。 |
Logs 与 Filters
| 方法 | 范围 | 说明 |
|---|---|---|
eth_getLogs | History/index | HTTP 计为 1 个 Request。链仍可能限制允许的区块范围。 |
eth_newFilter | HTTPS | 该链支持时创建日志过滤器。 |
eth_newBlockFilter | HTTPS | 创建新区块过滤器。 |
eth_newPendingTransactionFilter | HTTPS | 创建 pending 交易过滤器。 |
eth_getFilterChanges | HTTPS | 返回过滤器变化。 |
eth_getFilterLogs | HTTPS | 返回过滤器日志。 |
eth_uninstallFilter | HTTPS | 删除过滤器。 |
Gas 与 Fees
| 方法 | 范围 | 说明 |
|---|---|---|
eth_gasPrice | HTTPS/WSS | Legacy gas price。 |
eth_estimateGas | HTTPS | 估算交易 gas。 |
eth_feeHistory | HTTPS | EIP-1559 fee history。 |
eth_maxPriorityFeePerGas | HTTPS | Priority fee 建议。 |
eth_createAccessList | 按链支持 | 仅在该链支持时可用。 |
WebSocket Subscriptions
| 方法 | 范围 | 说明 |
|---|---|---|
eth_subscribe | 仅 WSS | 支持 newHeads、logs 等订阅类型。 |
eth_unsubscribe | 仅 WSS | 取消已有订阅。 |
Debug 与 Trace
| 方法 | 范围 | 说明 |
|---|---|---|
debug_traceTransaction | 付费 / debug | 返回交易执行 trace。 |
debug_traceBlockByHash | 付费 / debug | 按 block hash trace 区块内交易。 |
debug_traceBlockByNumber | 付费 / debug | 按 block number 或 tag trace 区块内交易。 |
debug_traceCall | 付费 / debug | Trace 一个不提交上链的 call。 |
trace_block | 付费 / trace | 返回区块 trace。 |
trace_call | 付费 / trace | 执行并 trace 一个 call。 |
trace_callMany | 付费 / trace | 该链支持时执行并 trace 多个 call。 |
trace_filter | 付费 / trace | 按区块和地址过滤 trace。 |
trace_get | 付费 / trace | 按交易 hash 和 trace address 查询 trace。 |
trace_rawTransaction | 付费 / trace | Trace raw transaction。 |
trace_transaction | 付费 / trace | 返回交易 trace。 |
trace_replayBlockTransactions | 付费 / trace | 对区块内全部交易执行重型 replay。 |
trace_replayTransaction | 付费 / trace | 重型 replay 方法,仅在确有需要时使用。 |
Txpool
| 方法 | 范围 | 说明 |
|---|---|---|
txpool_status | 付费 / txpool | 该链支持时的 pending pool 状态。 |
txpool_inspect | 付费 / txpool | 该链支持时的 pending pool 摘要。 |
txpool_content | 付费 / txpool | 该链支持时的 pending pool 内容。 |
Free endpoint 不包含 debug_*、trace_* 或 txpool_* 方法。方法倍率见 Request Counting。