Skip to content

XCM Analyser endpoints 🔎 ​

These XCM API endpoints let you perform XCM Analyser actions over REST. You can analyse either independent locations or entire XCM calls.

Analyse Location ​

Endpoint: POST /v2/xcm-analyser

Parameters
  • location: Specific location
Errors
  • 400 (Bad request exception) - Returned when no location is provided
  • 400 (Bad request exception) - Returned when wrongly formatted location is provided
  • 500 (Internal server error) - Returned when an unknown error has occurred. In this case please open an issue.
ts
const response = await fetch("https://api.paraspell.xyz/v2/xcm-analyser", {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        location: "location", //Replace location with specific location you wish to analyse
    })
});

Analyse XCM call ​

Endpoint: POST /v2/xcm-analyser

Parameters
  • xcm: Complete XCM call
Errors
  • 400 (Bad request exception) - Returned when no XCM call is provided
  • 400 (Bad request exception) - Returned when wrongly formatted location is provided
  • 500 (Internal server error) - Returned when an unknown error has occurred. In this case please open an issue.
ts
const response = await fetch("https://api.paraspell.xyz/v2/xcm-analyser", {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        xcm: "XCM" //Replace XCM with the specific XCM call you wish to analyse
    })
});

Released under the MIT License.