FiyatlandırmaGitHubKontrol paneli

Base

eth_subscribe (newPendingTransactions)10 kredi

Opens a WebSocket subscription; the node then pushes eth_subscription notifications for it.

Ağ: baseVaryant: newPendingTransactions

Parametreler

AdTürAçıklama
kindstringSubscription kind: newHeads (new block headers), logs (matching logs), newPendingTransactions (pending transaction hashes) or syncing (sync status changes).
filterObjectOnly for logs: { address, topics }. address is one address or an array of addresses, topics is an array of topics to match. (isteğe bağlı)

Dönüş değeri

Tür

string

Subscription id, e.g. 0x9ce59a13059e417087c02d3236a0b1cc. Notifications for this subscription carry the same id in params.subscription.

Kod örnekleri

wscat -c wss://holy-burned-sky-base-mainnet.rpcnode.dev/7c9e6679-7425-40de-944b-e07fc1f90ae7
> {"jsonrpc":"2.0","id":1,"method":"eth_subscribe","params":["newHeads"]}