Skip to content

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].

ts
api.tx.xls20.set_relayer(relayer: [u8;20])
ArgumentTypeDoc
relayer[u8;20]T::AccountId

Call index: 0

Xls20.set_xls20_fee

See [Pallet::set_xls20_fee].

ts
api.tx.xls20.set_xls20_fee(new_fee: u128)
ArgumentTypeDoc
new_feeu128Balance

Call index: 1

Xls20.enable_xls20_compatibility

See [Pallet::enable_xls20_compatibility].

ts
api.tx.xls20.enable_xls20_compatibility(collection_id: u32)
ArgumentTypeDoc
collection_idu32CollectionUuid

Call index: 2

Xls20.re_request_xls20_mint

See [Pallet::re_request_xls20_mint].

ts
api.tx.xls20.re_request_xls20_mint(collection_id: u32, serial_numbers: Vec<u32>)
ArgumentTypeDoc
collection_idu32CollectionUuid
serial_numbersVec&lt;u32&gt;BoundedVec<SerialNumber, T::MaxTokensPerXls20Mint>

Call index: 3

Xls20.fulfill_xls20_mint

See [Pallet::fulfill_xls20_mint].

ts
api.tx.xls20.fulfill_xls20_mint(collection_id: u32, token_mappings: Vec<(u32,[u8;32])>)
ArgumentTypeDoc
collection_idu32CollectionUuid
token_mappingsVec&lt;(u32,[u8;32])&gt;BoundedVec<(SerialNumber, Xls20TokenId), T::MaxTokensPerXls20Mint>

Call index: 4

Xls20.set_collection_mappings

See [Pallet::set_collection_mappings].

ts
api.tx.xls20.set_collection_mappings(mappings: Vec<(u32,PalletXls20Xls20Collection)>)
ArgumentTypeDoc
mappingsVec&lt;(u32,PalletXls20Xls20Collection)&gt;Vec<(CollectionUuid, Xls20Collection)>

Call index: 5

Events

Xls20.Xls20MintRequest

Request sent to XLS20 Relayer

FieldTypeDoc
collection_idu32
serial_numbersVec&lt;u32&gt;
token_urisVec&lt;Bytes&gt;

Xls20.RelayerSet

A new relayer has been set

FieldTypeDoc
account[u8;20]

Xls20.Xls20MintFeeSet

A new Xls20 Mint Fee has been set

FieldTypeDoc
new_feeu128

Xls20.Xls20MappingSet

A new XLS20 mapping has been set

FieldTypeDoc
collection_idu32
mappingsVec&lt;(u32,[u8;32])&gt;

Xls20.Xls20CollectionMappingsSet

Xls20 collection mappings have been set

FieldTypeDoc
mappingsVec&lt;(u32,PalletXls20Xls20Collection)&gt;

Xls20.Xls20CompatibilityEnabled

A collection has had XLS-20 compatibility enabled

FieldTypeDoc
collection_idu32

Xls20.Xls20MintFeePaid

Additional mint fee for XLS-20 mint has been paid to relayer

FieldTypeDoc
collection_owner[u8;20]
total_feeu128

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

ts
await api.query.xls20.relayer()

Returns: [u8;20]

Modifier: Optional

Xls20.Xls20MintFee

The extra cost of minting an XLS-20 compatible NFT

ts
await api.query.xls20.xls20MintFee()

Returns: u128

Modifier: Default

Xls20.Xls20TokenMap

Maps from TRN native token_id to XLS-20 TokenId

ts
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

ts
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

Source: live chain metadata from wss://root.rootnet.live/archive/ws · captured 2026-05-02

Curated independently by Codeology. Source-attributed reference for The Root Network. Not affiliated with Futureverse / TRN Labs.