Moonbeam XCM SDK Reference: Types and Interfaces
The XCM SDK is based on defining an asset to transfer, then the source chain to send the asset from, and the destination chain to send the asset to, which, together, build the transfer data.
Core Interfaces
The SDK provides the following core interfaces, which can be accessed after initialization:
Interface | Description |
---|---|
symbols |
A list containing the asset's origin chain symbol for each of the supported assets for the initialized Moonbeam network |
assets |
A list of the supported assets for the initialized Moonbeam network along with their asset ID, precompiled address on Moonbeam, and the asset symbol |
moonAsset |
Contains the asset ID, precompile contract address, and native asset symbol for the initialized Moonbeam network |
moonChain |
Contains the chain key, name, WSS endpoint, parachain ID, decimals of the native asset, chain ID, and units per second for the initialized Moonbeam network |