# Introducing XCM Monitoring Server

**URL:** <https://forum.polkadot.network/t/introducing-xcm-monitoring-server/4750>\
**Category:** Tech Talk\
**Tags:** xcm\
**Created:** [November 20, 2023, 6:28pm UTC](https://forum.polkadot.network/t/introducing-xcm-monitoring-server/4750 "2023-11-20T18:28:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sodazone](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/sodazone/32/7216_2.png) [@sodazone](https://forum.polkadot.network/u/sodazone)\
**Post date:** [November 20, 2023, 6:28pm UTC](https://forum.polkadot.network/t/introducing-xcm-monitoring-server/4750/1 "2023-11-20T18:28:02Z")

</div>

We are pleased to announce the first release of the XCM Monitoring Server.

You can run the server using Docker and subscribe to multiple origin and destination chains to receive notifications when XCM interactions of your interest are executed on the destination chain. The server facilitates connection through both RPC and smoldot.

For more details, please visit our repository: [GitHub - sodazone/xcm-monitoring: XCM Monitoring Server](https://github.com/sodazone/xcm-monitoring)

Happy to answer any questions!

---

<div class="post-metadata">

**Author:** ![xlc](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/xlc/32/690_2.png) [@xlc](https://forum.polkadot.network/u/xlc)\
**Post date:** [November 24, 2023, 12:14am UTC](https://forum.polkadot.network/t/introducing-xcm-monitoring-server/4750/2 "2023-11-24T00:14:32Z")

</div>

Do you have an example deployment or something to show the features?

Is this a library, or an app, or both?

Does it able to detect, and help debug the recent Kusama XCM issue? [XCM Upgrade To v3](https://forum.polkadot.network/t/xcm-upgrade-to-v3/4690)

---

<div class="post-metadata">

**Author:** ![sodazone](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.polkadot.network/sodazone/32/7216_2.png) [@sodazone](https://forum.polkadot.network/u/sodazone)\
**Post date:** [November 24, 2023, 9:15am UTC](https://forum.polkadot.network/t/introducing-xcm-monitoring-server/4750/3 "2023-11-24T09:15:12Z")

</div>

It is a server that can be deployed within your infrastructure, and we’ve facilitated the process by providing Docker images for easy setup.

This server enables you to connect to multiple chains using either RPC or Smoldot. Here’s an example configuration in TOML format:

```toml
[[networks]]
name = "polkadot"
id = 0
throttle = 1_000

  [networks.provider]
  type = "smoldot"

[[networks]]
name = "asset_hub"
id = 1_000
relay = "polkadot"

  [networks.provider]
  type = "rpc"
  url = "wss://polkadot-asset-hub-rpc.polkadot.io"

[[networks]]
name = "acala"
id = 2_000
relay = "polkadot"
throttle = 1_000

  [networks.provider]
  type = "smoldot"
  spec = "./chain-specs/acala.json"

```

Once the server is running, you can subscribe to receive notifications for XCM executions by providing a webhook endpoint. For instance:

```shell
curl 'http://127.0.0.1:3000/subs' \
--header 'Content-Type: application/json' \
--data '[{
    "id": "acala-transfers",
    "origin": 2000,
    "senders": "*",
    "destinations": [0, 1000],
    "notify": {
        "type": "webhook",
        "url": "https://webhook.site/faf64821-cb4d-41ad-bb81-fd119e80ad02"
    }
}]'

```

You can find more details in the documentation here: [https://github.com/sodazone/xcm-monitoring/blob/910ee7f37cd19e41a3b3f57e82f4dffb10588a94/guides/SUBSCRIPTION.md](https://github.com/sodazone/xcm-monitoring/blob/910ee7f37cd19e41a3b3f57e82f4dffb10588a94/guides/SUBSCRIPTION.md)

> [@xlc](#):
>
> Does it able to detect, and help debug the recent Kusama XCM issue? [XCM Upgrade To v3](https://forum.polkadot.network/t/xcm-upgrade-to-v3/4690)

Currently, notifications are triggered only upon receival, matched to a send. If you have subscriptions to the involved chains with a wildcard address, you’ll notice the absence of notifications on the destination chains.

We have plans in the near future to expand the types of events you can receive during the XCM journey, e.g. SEND, RECEIVE, and HOP.
