Xls20 pallet
Derived from live runtime metadata on TRN root (pallet index 42, captured 2026-05-02). For prose-style documentation see Xls20 on the curated reference side.
- Pallet index
42- Calls
- 6
- Events
- 7
- Errors
- 8
- Storage items
- 4
- Constants
- 1
Calls (extrinsics)
Xls20.set_relayer
See [
Pallet::set_relayer].
api.tx.xls20.set_relayer(relayer: [u8;20])| Argument | Type | Doc |
|---|---|---|
relayer | [u8;20] | T::AccountId |
Call index: 0
Xls20.set_xls20_fee
See [
Pallet::set_xls20_fee].
api.tx.xls20.set_xls20_fee(new_fee: u128)| Argument | Type | Doc |
|---|---|---|
new_fee | u128 | Balance |
Call index: 1
Xls20.enable_xls20_compatibility
See [
Pallet::enable_xls20_compatibility].
api.tx.xls20.enable_xls20_compatibility(collection_id: u32)| Argument | Type | Doc |
|---|---|---|
collection_id | u32 | CollectionUuid |
Call index: 2
Xls20.re_request_xls20_mint
See [
Pallet::re_request_xls20_mint].
api.tx.xls20.re_request_xls20_mint(collection_id: u32, serial_numbers: Vec<u32>)| Argument | Type | Doc |
|---|---|---|
collection_id | u32 | CollectionUuid |
serial_numbers | Vec<u32> | BoundedVec<SerialNumber, T::MaxTokensPerXls20Mint> |
Call index: 3
Xls20.fulfill_xls20_mint
See [
Pallet::fulfill_xls20_mint].
api.tx.xls20.fulfill_xls20_mint(collection_id: u32, token_mappings: Vec<(u32,[u8;32])>)| Argument | Type | Doc |
|---|---|---|
collection_id | u32 | CollectionUuid |
token_mappings | Vec<(u32,[u8;32])> | BoundedVec<(SerialNumber, Xls20TokenId), T::MaxTokensPerXls20Mint> |
Call index: 4
Xls20.set_collection_mappings
See [
Pallet::set_collection_mappings].
api.tx.xls20.set_collection_mappings(mappings: Vec<(u32,PalletXls20Xls20Collection)>)| Argument | Type | Doc |
|---|---|---|
mappings | Vec<(u32,PalletXls20Xls20Collection)> | Vec<(CollectionUuid, Xls20Collection)> |
Call index: 5
Events
Xls20.Xls20MintRequest
Request sent to XLS20 Relayer
| Field | Type | Doc |
|---|---|---|
collection_id | u32 | |
serial_numbers | Vec<u32> | |
token_uris | Vec<Bytes> |
Xls20.RelayerSet
A new relayer has been set
| Field | Type | Doc |
|---|---|---|
account | [u8;20] |
Xls20.Xls20MintFeeSet
A new Xls20 Mint Fee has been set
| Field | Type | Doc |
|---|---|---|
new_fee | u128 |
Xls20.Xls20MappingSet
A new XLS20 mapping has been set
| Field | Type | Doc |
|---|---|---|
collection_id | u32 | |
mappings | Vec<(u32,[u8;32])> |
Xls20.Xls20CollectionMappingsSet
Xls20 collection mappings have been set
| Field | Type | Doc |
|---|---|---|
mappings | Vec<(u32,PalletXls20Xls20Collection)> |
Xls20.Xls20CompatibilityEnabled
A collection has had XLS-20 compatibility enabled
| Field | Type | Doc |
|---|---|---|
collection_id | u32 |
Xls20.Xls20MintFeePaid
Additional mint fee for XLS-20 mint has been paid to relayer
| Field | Type | Doc |
|---|---|---|
collection_owner | [u8;20] | |
total_fee | u128 |
Errors
Xls20.NotRelayer
The caller is not the relayer and does not have permission to perform this action
Xls20.MappingAlreadyExists
There is already a Root native -> XLS-20 mapping for this token
Xls20.Xls20MintFeeTooLow
The supplied fee for minting XLS-20 tokens is too low
Xls20.NotXLS20Compatible
The collection is not compatible with XLS-20
Xls20.NoToken
The NFT does not exist
Xls20.NotCollectionOwner
No the owner of the collection
Xls20.CouldNotDecodeXls20Token
The XLS20 token ID failed to decode
Xls20.CannotBridgeBurnableToken
The token is burnable and cannot be bridged
Storage
Xls20.Relayer
The permissioned relayer
await api.query.xls20.relayer()Returns: [u8;20]
Modifier: Optional
Xls20.Xls20MintFee
The extra cost of minting an XLS-20 compatible NFT
await api.query.xls20.xls20MintFee()Returns: u128
Modifier: Default
Xls20.Xls20TokenMap
Maps from TRN native token_id to XLS-20 TokenId
await api.query.xls20.xls20TokenMap(key1, key2)- Key:
(u32,u32)(hashers: Twox64Concat, Twox64Concat) - Returns:
[u8;32]
Modifier: Optional
Xls20.CollectionMapping
Map from XLs-20 Collection to CollectionUuid
await api.query.xls20.collectionMapping(key1)- Key:
{"issuerAddress":"H160","taxon":"u32"}(hasher: Twox64Concat) - Returns:
u32
Modifier: Optional
Constants
Xls20.PalletId
This pallet's ID, used for deriving a sovereign account ID
Type: [u8;8]
SCALE-encoded value: 0x786c7332306e6674
wss://root.rootnet.live/archive/ws · captured 2026-05-02