+
+
+1. Instantiate a [`Wallet`](https://docs.rs/iota-sdk/latest/iota_sdk/wallet/core/struct.Wallet.html).
+
+
+
+```rust reference
+https://github.com/iotaledger/iota-sdk/blob/develop/sdk/examples/wallet/events.rs#L38-L44
+```
+
+
+
+2. Use the `Wallet` instance to listen to events with the
+ [`Wallet.listen()`](https://docs.rs/iota-sdk/latest/iota_sdk/wallet/core/struct.WalletInner.html#method.listen) function.
+ You can listen for a specific
+ [`WalletEventType`](https://docs.rs/iota-sdk/latest/iota_sdk/wallet/events/types/enum.WalletEventType.html).
+
+
+
+```rust reference
+https://github.com/iotaledger/iota-sdk/blob/develop/sdk/examples/wallet/events.rs#L46-L50
+```
+
+
+
+
+
+
+1. Instantiate a [`Wallet`](../../references/nodejs/classes/Wallet.md).
+
+
+
+```typescript reference
+https://github.com/iotaledger/iota-sdk/blob/develop/bindings/nodejs/examples/exchange/4-listen-events.ts#L21-L23
+```
+
+
+
+2. Define a callback.
+
+
+
+```typescript reference
+https://github.com/iotaledger/iota-sdk/blob/develop/bindings/nodejs/examples/exchange/4-listen-events.ts#L25-L31
+```
+
+
+
+3. Use the `Wallet` instance to listen to events with the
+ [`Wallet.listen()`](../../references/nodejs/classes/Wallet.md#listen) function. You can listen for a specific
+ [`WalletEventType`](../../references/nodejs/enums/WalletEventType.md), in this case,
+ [`WalletEventType.NewOutput`](../../references/nodejs/enums/WalletEventType.md#newoutput).
+
+
+
+```typescript reference
+https://github.com/iotaledger/iota-sdk/blob/develop/bindings/nodejs/examples/exchange/4-listen-events.ts#L34
+```
+
+
+
+
+
+
+1. Instantiate a [`wallet`](../../references/python/iota_sdk/wallet/wallet.md).
+
+
+
+```python reference
+https://github.com/iotaledger/iota-sdk/blob/develop/bindings/python/examples/exchange/4_listen_events.py#L19
+```
+
+
+
+2. Define a callback.
+
+
+
+```python reference
+https://github.com/iotaledger/iota-sdk/blob/develop/bindings/python/examples/exchange/4_listen_events.py#L26-L33
+```
+
+
+
+3. Use the `wallet` instance to listen to events with the
+ [`wallet.listen()`](../../references/python/iota_sdk/wallet/wallet.md#listen) function. You can listen for a specific
+ [`WalletEventType`](../../references/python/iota_sdk/types/event.md), in this case, `WalletEventType.NewOutput`.
+
+
+
+```python reference
+https://github.com/iotaledger/iota-sdk/blob/develop/bindings/python/examples/exchange/4_listen_events.py#L37
+```
+
+
+
+
+
+
+
+### Full Example Code
+
+