Skip to content

Commit

Permalink
chore(xcm-api): Add XCM Analyser to Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dudo50 authored Jul 4, 2024
1 parent d171645 commit 32ffda2
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion apps/xcm-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,30 @@ const response = await fetch("http://localhost:3001/router", {
address: "Address", //Recipient address
injectorAddress: 'InjectorAddress', //Address of sender
})
})
});
```

### XCM Analyser
A complete guide on this section can be found in [official docs](https://paraspell.github.io/docs/api/xcmAnalyser.html).

```
NOTICE: Only one parameter at a time is allowed, either multilocation or xcm.
```

Possible parameters:
- `multilocation` (Optional): Specific multilocation
- `xcm` (Optional): Complete XCM call

```js
const response = await fetch("http://localhost:3001/xcm-analyser", {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
multilocation: "Multilocation", //Replace Multilocation with specific Multilocation you wish to analyse
xcm: "XCM" //Replace XCM with the specific XCM call you wish to analyse
});
```
### Asset Pallet
Expand Down

0 comments on commit 32ffda2

Please sign in to comment.