AssetsExt pallet
Derived from live runtime metadata on TRN root (pallet index 7, captured 2026-05-02). For prose-style documentation see AssetsExt on the curated reference side.
- Pallet index
7- Calls
- 5
- Events
- 8
- Errors
- 8
- Storage items
- 3
- Constants
- 3
Calls (extrinsics)
AssetsExt.set_asset_deposit
See [
Pallet::set_asset_deposit].
api.tx.assetsExt.set_asset_deposit(asset_deposit: u128)| Argument | Type | Doc |
|---|---|---|
asset_deposit | u128 | DepositBalanceOf<T> |
Call index: 0
AssetsExt.create_asset
See [
Pallet::create_asset].
api.tx.assetsExt.create_asset(name: Bytes, symbol: Bytes, decimals: u8, min_balance: Option<u128>, owner: Option<SeedPrimitivesSignatureAccountId20>)| Argument | Type | Doc |
|---|---|---|
name | Bytes | Vec<u8> |
symbol | Bytes | Vec<u8> |
decimals | u8 | u8 |
min_balance | Option<u128> | Option<Balance> |
owner | Option<SeedPrimitivesSignatureAccountId20> | Option<T::AccountId> |
Call index: 1
AssetsExt.mint
See [
Pallet::mint].
api.tx.assetsExt.mint(asset_id: u32, beneficiary: [u8;20], amount: Compact<u128>)| Argument | Type | Doc |
|---|---|---|
asset_id | u32 | AssetId |
beneficiary | [u8;20] | AccountIdLookupOf<T> |
amount | Compact<u128> | Balance |
Call index: 2
AssetsExt.transfer
See [
Pallet::transfer].
api.tx.assetsExt.transfer(asset_id: u32, destination: [u8;20], amount: Compact<u128>, keep_alive: bool)| Argument | Type | Doc |
|---|---|---|
asset_id | u32 | AssetId |
destination | [u8;20] | T::AccountId |
amount | Compact<u128> | Balance |
keep_alive | bool | bool |
Call index: 3
AssetsExt.burn_from
See [
Pallet::burn_from].
api.tx.assetsExt.burn_from(asset_id: u32, who: [u8;20], amount: Compact<u128>)| Argument | Type | Doc |
|---|---|---|
asset_id | u32 | AssetId |
who | [u8;20] | AccountIdLookupOf<T> |
amount | Compact<u128> | Balance |
Call index: 4
Events
AssetsExt.PlaceHold
Some assets have been placed on hold by a pallet
| Field | Type | Doc |
|---|---|---|
asset_id | u32 | |
who | [u8;20] | |
amount | u128 | |
pallet_id | [u8;8] |
AssetsExt.ReleaseHold
Some held assets have been released by a pallet
| Field | Type | Doc |
|---|---|---|
asset_id | u32 | |
who | [u8;20] | |
amount | u128 | |
pallet_id | [u8;8] |
AssetsExt.SpendHold
Some held assets were spend by a pallet
| Field | Type | Doc |
|---|---|---|
asset_id | u32 | |
who | [u8;20] | |
spends | Vec<(SeedPrimitivesSignatureAccountId20,u128)> | |
pallet_id | [u8;8] |
AssetsExt.SplitTransfer
Multi-part transfer of assets from who
| Field | Type | Doc |
|---|---|---|
asset_id | u32 | |
who | [u8;20] | |
transfers | Vec<(SeedPrimitivesSignatureAccountId20,u128)> |
AssetsExt.CreateAsset
New asset has been created
| Field | Type | Doc |
|---|---|---|
asset_id | u32 | |
creator | [u8;20] | |
initial_balance | u128 |
AssetsExt.InternalWithdraw
Assets were withdrawn from this account by the system e.g. paying tx fees
| Field | Type | Doc |
|---|---|---|
asset_id | u32 | |
who | [u8;20] | |
amount | u128 |
AssetsExt.InternalDeposit
Assets were deposited into this account by the system e.g. refunding gas
| Field | Type | Doc |
|---|---|---|
asset_id | u32 | |
who | [u8;20] | |
amount | u128 |
AssetsExt.AssetDepositSet
The asset deposit was set
| Field | Type | Doc |
|---|---|---|
asset_deposit | u128 |
Errors
AssetsExt.DecimalsTooHigh
Decimals cannot be higher than 18
AssetsExt.NoAvailableIds
No more Ids are available, they've been exhausted
AssetsExt.NoPermission
The signer does not have permission to perform this action
AssetsExt.BalanceLow
Hold balance is less then the required amount
AssetsExt.NoAccount
The account to alter does not exist
AssetsExt.Overflow
Operation would overflow
AssetsExt.MaxHolds
Maximum holds placed on this asset/account pair
AssetsExt.CreateAssetFailed
Failed to create a new asset
Storage
AssetsExt.Holds
The holdings of a specific account for a specific asset.
await api.query.assetsExt.holds(key1, key2)- Key:
(u32,SeedPrimitivesSignatureAccountId20)(hashers: Twox64Concat, Blake2_128Concat) - Returns:
Vec<([u8;8],u128)>
Modifier: Default
AssetsExt.NextAssetId
The total units issued in the system.
await api.query.assetsExt.nextAssetId()Returns: u32
Modifier: Default
AssetsExt.AssetDeposit
The minimum deposit for creating an asset
await api.query.assetsExt.assetDeposit()Returns: u128
Modifier: Default
Constants
AssetsExt.MaxHolds
The maximum * of holds per asset & account
Type: u32
SCALE-encoded value: 0x10000000
AssetsExt.NativeAssetId
The native token asset Id (managed by pallet-balances)
Type: u32
SCALE-encoded value: 0x01000000
AssetsExt.PalletId
This pallet's Id, used for deriving a sovereign account ID
Type: [u8;8]
SCALE-encoded value: 0x6173736574657874
wss://root.rootnet.live/archive/ws · captured 2026-05-02