XCM Monitor
Track cross-chain interactions and asset transfers effortlessly.
- Agent ID
- xcm
- APIs
- webhooks, streams
- Networks
- all with open XCM channels
Input Arguments
Argument | Description | Required |
---|---|---|
origin | The origin network ID . | yes |
destinations | A set of destination network IDs . | yes |
senders | A set of account addresses. Supports public keys as hex strings. Use “*” for any. |
yes |
events | The events to subscribe to. Supported values: xcm.sent , xcm.received , xcm.relayed , xcm.timeout , xcm.hop , xcm.bridge .Use “*” for all. |
no |
bridges | Enable bridge monitoring for a subscription. Supported values: pk-bridge , snowbridge |
no |
Hint
You can retrieve the input schema from https://api.ocelloids.net/agents/xcm/inputs .
XCM Monitor Arguments JSON Schema
XCM Monitor Arguments
{
"type": "object",
"properties": {
"origin": {
"type": "string",
"minLength": 1
},
"senders": {
"anyOf": [
{
"type": "string",
"const": "*"
},
{
"type": "array",
"items": {
"type": "string"
},
"minItems": 1
}
]
},
"destinations": {
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
},
"bridges": {
"type": "array",
"items": {
"type": "string",
"enum": [
"pk-bridge",
"snowbridge"
]
},
"minItems": 1
},
"events": {
"anyOf": [
{
"type": "string",
"const": "*"
},
{
"type": "array",
"items": {
"type": "string",
"enum": [
"xcm.sent",
"xcm.received",
"xcm.relayed",
"xcm.timeout",
"xcm.hop",
"xcm.bridge"
]
},
"minItems": 1
}
]
},
"outboundTTL": {
"type": "number",
"minimum": 6000,
"maximum": 9007199254740991
}
},
"required": [
"origin",
"destinations"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
}
Examples
Please refer to the Subscription Example .