|
XCM Info:
|
// setup ably realtime client and channel -- use your own API key
<script src="https://cdn.ably.com/lib/ably.min-1.js"></script>
var client = new Ably.Realtime("DTaENA.C13wMg:WBLRXZd-9u73gBtrFc19WPFrkeX0ACnW0dhRrYPaRuU");
// channel name: "xcminfo" can be replaced with "moonbeam", "astar", "interlay", etc.
var channel = client.channels.get("xcminfo");
channel.subscribe(function (message) {
// filter on message.name (transaction hash or extrinsic hash), show feedback in app ...
});
async function main() {
const Ably = require('ably'); // setup with "npm install ably"
// setup ably realtime client and channel -- use your own API key here
var client = new Ably.Realtime("DTaENA.C13wMg:WBLRXZd-9u73gBtrFc19WPFrkeX0ACnW0dhRrYPaRuU");
await client.connection.once('connected');
// channel name: "xcminfo" can be replaced with "moonbeam", "astar", "interlay", etc.
var channel = client.channels.get("xcminfo");
await channel.subscribe(function (message) {
console.log('Received xcminfo: ', message);
});
}
main()
.then(() => {
})
.catch((e) => {
console.error('ERROR', e);
process.exit(1);
});
finalized
attribute (true or false). Typical normal XCM Transfers will have 3 key events: Origin chain Unfinalized, Origin chain Finalized, Destination chain Finalizedorigination.isMsgSent
is false
destination.executionStatus
is false
and error details are provided in destination.error
.curl -H "Authorization: YOUR-API-KEY" "https://api.polkaholic.io"