# Subscribe to events

Subscribe to events with the WebSocket [subscription methods](https://paralinker.gitbook.io/paralinker-docs/reference/ethereum-execution-layer/json-rpc-api/subscription-methods).

Subscription is only available over stateful transports such as WebSocket. Subscription requests cannot be made over HTTPS.

### Example event subscription

The following WebSocket subscription example fires a notification each time a new header is appended to the chain:

```bash
$ wscat -c wss://eth-mainnet.paralinker.com/wss/v1/YOUR-API-KEY
> {"jsonrpc":  "2.0",  "id":  1,  "method":  "eth_subscribe",  "params":  ["newHeads"]}
```
