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_chainIdHTTPS/WSS返回当前 chain ID。
eth_syncingHTTPS/WSS返回同步状态。
net_versionHTTPS/WSS返回网络 ID。
net_listeningHTTPS/WSS返回监听状态。
net_peerCountHTTPS/WSS该链提供时返回 peer 数。
web3_clientVersionHTTPS/WSS返回客户端版本字符串。
web3_sha3HTTPS/WSS返回 Keccak-256 hash。

Account 与 State

方法范围说明
eth_getBalanceLatest 或 Archive旧区块 tag 需要 Archive 路由。
eth_getCodeLatest 或 Archive旧区块 tag 需要 Archive 路由。
eth_getStorageAtLatest 或 Archive按 block tag 读取 storage slot。
eth_getProofArchive/proof返回账户与 storage Merkle proof。
eth_getTransactionCountLatest 或 Archive旧区块 tag 需要 Archive 路由。
eth_callLatest 或 Archive历史调用需要 Archive state。

Blocks

方法范围说明
eth_blockNumberHTTPS/WSS最新区块号。
eth_getBlockByNumberHTTPS/WSS按区块号或 tag 查询区块。
eth_getBlockByHashHTTPS/WSS按 hash 查询区块。
eth_getBlockTransactionCountByNumberHTTPS/WSS按区块号返回交易数。
eth_getBlockTransactionCountByHashHTTPS/WSS按区块 hash 返回交易数。
eth_getBlockReceiptsHeavy/history该链支持时返回区块内全部 receipt。

Transactions

方法范围说明
eth_getTransactionByHashHTTPS/WSS按 hash 查询交易。
eth_getTransactionByBlockNumberAndIndexHTTPS/WSS按区块号和 index 查询交易。
eth_getTransactionByBlockHashAndIndexHTTPS/WSS按区块 hash 和 index 查询交易。
eth_getTransactionReceiptHTTPS/WSS查询交易 receipt。
eth_sendRawTransactionHTTPS广播已签名交易。

Logs 与 Filters

方法范围说明
eth_getLogsHistory/indexHTTP 计为 1 个 Request。链仍可能限制允许的区块范围。
eth_newFilterHTTPS该链支持时创建日志过滤器。
eth_newBlockFilterHTTPS创建新区块过滤器。
eth_newPendingTransactionFilterHTTPS创建 pending 交易过滤器。
eth_getFilterChangesHTTPS返回过滤器变化。
eth_getFilterLogsHTTPS返回过滤器日志。
eth_uninstallFilterHTTPS删除过滤器。

Gas 与 Fees

方法范围说明
eth_gasPriceHTTPS/WSSLegacy gas price。
eth_estimateGasHTTPS估算交易 gas。
eth_feeHistoryHTTPSEIP-1559 fee history。
eth_maxPriorityFeePerGasHTTPSPriority 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付费 / debugTrace 一个不提交上链的 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付费 / traceTrace 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。