Skip to content
On this page

Query which XCM pallet Parachain uses 📦

This functionality allows developers to query the XCM pallets that Parachains currently support.

Video guide for this section:

xcmPallets

Import functionality

To use this functionality you first have to import it in the following way.

js
import { getDefaultPallet, getSupportedPallets, SUPPORTED_PALLETS } from '@paraspell/sdk'

Get default XCM pallet

The function returns the default XCM pallet for selected compatible Parachain.

js
getDefaultPallet(node: TNode)

Get all supported XCM pallets

The function returns all supported XCM pallets for selected compatible Parachain.

js
getSupportedPallets(node: TNode)

This returns all supported XCM pallets supported by compatible Parachains as constant.

js
console.log(SUPPORTED_PALLETS)