EVM events
Real-time event stream for EVM networks. Subscribe by address and receive new blocks and address activity as soon as each block is finalized.
wss://api.chaingate.dev/evm/{network}/events?api_key=YOUR_API_KEY
Supported networks
| Network | {network} |
|---|---|
| Ethereum | ethereum |
| Avalanche | avalanche |
Channels
| Channel | Address? | Flags | What you receive |
|---|---|---|---|
blocks | No | full | New block summaries — or full blocks with full: true. |
balance | Yes | pending | Confirmed balance — or the pending delta with pending: true. |
history | Yes | pending | Confirmed transaction activity — or pending txs with pending: true. |
contract_interactions | Yes | — | New contracts an address interacts with. |
mempool | No | — | Every pending transaction, as it is seen. (Optional.) |
Subscribe
Pass a normal 0x address:
{ "action": "subscribe", "channel": "balance", "address": "0xa1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0" }
{ "action": "subscribe", "channel": "balance", "address": "0xa1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0", "pending": true }
{ "action": "subscribe", "channel": "blocks" }
Data types
- Addresses are
0x-prefixed lowercase hex. - Balances are returned in wei as a decimal string — wei values regularly exceed JSON's safe integer range, so they are never sent as numbers.
- Block numbers in the summary events (
block,balance,history, …) are JSON integers. The full block stream (full: true) is different: its fields are0x-hex quantities, exactly as the chain returns them.