文档
定价GitHub控制台

Monad

eth_subscription (logs)2 额度

Notification pushed by the node over WebSocket after eth_subscribe; it is not a method you can call.

网络: monad变体: logs

参数

无需参数(params 数组为空)。

返回值

类型

Object

Notification { jsonrpc, method: "eth_subscription", params: { subscription, result } }. params.subscription is the id from eth_subscribe. params.result depends on the kind: newHeads, a block header (number, hash, parentHash, timestamp, miner, gasLimit, gasUsed, stateRoot, ...); logs, a log object (address, topics, data, blockHash, blockNumber, transactionHash, transactionIndex, logIndex, removed); newPendingTransactions, a transaction hash; syncing, a boolean or an object with startingBlock, currentBlock, highestBlock, pulledStates, knownStates.