/ DEVELOPERS / API / ETH_SUBSCRIBE:LOGS

eth_subscribe:logs

WS-only. Streams logs that match an optional address+topics filter. Each emitted log has the same shape as eth_getLogs.

eth_subscribe:logs

WS-only. Streams logs that match an optional address+topics filter. Each emitted log has the same shape as eth_getLogs.

eth_*category: subscriptionreturns: subscription
Share link

Parameters

Always 'logs'

{ address?, topics? }

This is a WebSocket-only subscription topic. Sending over HTTP will return an error — connect to /ws for streaming events.

Response

Press Send Request to see a response.

Copy as

curl -X POST '/rpc' \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","method":"eth_subscribe","params":["logs",{"address":[],"topics":[]}],"id":1}'