Ethereum Classic
eth_subscription (logs)2 kredi
eth_subscribe sonrasında node tarafından WebSocket üzerinden gönderilen bildirim; çağırabileceğiniz bir yöntem değildir.
Parametreler
Parametre gerekmez (boş params dizisi).
Dönüş değeri
Tür
Object
Bildirim { jsonrpc, method: "eth_subscription", params: { subscription, result } }. params.subscription, eth_subscribe tarafından döndürülen kimliktir. params.result türe göre değişir: newHeads için bir blok başlığı (number, hash, parentHash, timestamp, miner, gasLimit, gasUsed, stateRoot, ...); logs için bir olay günlüğü nesnesi (address, topics, data, blockHash, blockNumber, transactionHash, transactionIndex, logIndex, removed); newPendingTransactions için bir işlem hash değeri; syncing için bir boolean veya startingBlock, currentBlock, highestBlock, pulledStates, knownStates içeren bir nesne.