System pallet
Derived from live runtime metadata on TRN root (pallet index 0, captured 2026-05-02). For prose-style documentation see System on the curated reference side.
- Pallet index
0- Calls
- 8
- Events
- 6
- Errors
- 6
- Storage items
- 16
- Constants
- 6
Calls (extrinsics)
System.remark
See [
Pallet::remark].
api.tx.system.remark(remark: Bytes)| Argument | Type | Doc |
|---|---|---|
remark | Bytes | Vec<u8> |
Call index: 0
System.set_heap_pages
See [
Pallet::set_heap_pages].
api.tx.system.set_heap_pages(pages: u64)| Argument | Type | Doc |
|---|---|---|
pages | u64 | u64 |
Call index: 1
System.set_code
See [
Pallet::set_code].
api.tx.system.set_code(code: Bytes)| Argument | Type | Doc |
|---|---|---|
code | Bytes | Vec<u8> |
Call index: 2
System.set_code_without_checks
See [
Pallet::set_code_without_checks].
api.tx.system.set_code_without_checks(code: Bytes)| Argument | Type | Doc |
|---|---|---|
code | Bytes | Vec<u8> |
Call index: 3
System.set_storage
See [
Pallet::set_storage].
api.tx.system.set_storage(items: Vec<(Bytes,Bytes)>)| Argument | Type | Doc |
|---|---|---|
items | Vec<(Bytes,Bytes)> | Vec<KeyValue> |
Call index: 4
System.kill_storage
See [
Pallet::kill_storage].
api.tx.system.kill_storage(keys: Vec<Bytes>)| Argument | Type | Doc |
|---|---|---|
keys | Vec<Bytes> | Vec<Key> |
Call index: 5
System.kill_prefix
See [
Pallet::kill_prefix].
api.tx.system.kill_prefix(prefix: Bytes, subkeys: u32)| Argument | Type | Doc |
|---|---|---|
prefix | Bytes | Key |
subkeys | u32 | u32 |
Call index: 6
System.remark_with_event
See [
Pallet::remark_with_event].
api.tx.system.remark_with_event(remark: Bytes)| Argument | Type | Doc |
|---|---|---|
remark | Bytes | Vec<u8> |
Call index: 7
Events
System.ExtrinsicSuccess
An extrinsic completed successfully.
| Field | Type | Doc |
|---|---|---|
dispatch_info | {"weight":"SpWeightsWeightV2Weight","class":"FrameSupportDispatchDispatchClass","paysFee":"FrameSupportDispatchPays"} |
System.ExtrinsicFailed
An extrinsic failed.
| Field | Type | Doc |
|---|---|---|
dispatch_error | {"_enum":{"Other":"Null","CannotLookup":"Null","BadOrigin":"Null","Module":"SpRuntimeModuleError","ConsumerRemaining":"Null","NoProviders":"Null","TooManyConsumers":"Null","Token":"SpRuntimeTokenError","Arithmetic":"SpArithmeticArithmeticError","Transactional":"SpRuntimeTransactionalError","Exhausted":"Null","Corruption":"Null","Unavailable":"Null","RootNotAllowed":"Null"}} | |
dispatch_info | {"weight":"SpWeightsWeightV2Weight","class":"FrameSupportDispatchDispatchClass","paysFee":"FrameSupportDispatchPays"} |
System.CodeUpdated
:codewas updated.
No payload.
System.NewAccount
A new account was created.
| Field | Type | Doc |
|---|---|---|
account | [u8;20] |
System.KilledAccount
An account was reaped.
| Field | Type | Doc |
|---|---|---|
account | [u8;20] |
System.Remarked
On on-chain remark happened.
| Field | Type | Doc |
|---|---|---|
sender | [u8;20] | |
hash | H256 |
Errors
System.InvalidSpecName
The name of specification does not match between the current runtime and the new runtime.
System.SpecVersionNeedsToIncrease
The specification version is not allowed to decrease between the current runtime and the new runtime.
System.FailedToExtractRuntimeVersion
Failed to extract the runtime version from the new runtime. Either calling
Core_versionor decodingRuntimeVersionfailed.
System.NonDefaultComposite
Suicide called when the account has non-default composite data.
System.NonZeroRefCount
There is a non-zero reference count preventing the account from being purged.
System.CallFiltered
The origin filter prevent the call to be dispatched.
Storage
System.Account
The full account information for a particular account ID.
await api.query.system.account(key1)- Key:
[u8;20](hasher: Blake2_128Concat) - Returns:
{"nonce":"u32","consumers":"u32","providers":"u32","sufficients":"u32","data":"PalletBalancesAccountData"}
Modifier: Default
System.ExtrinsicCount
Total extrinsics count for the current block.
await api.query.system.extrinsicCount()Returns: u32
Modifier: Optional
System.BlockWeight
The current weight for the block.
await api.query.system.blockWeight()Returns: {"normal":"SpWeightsWeightV2Weight","operational":"SpWeightsWeightV2Weight","mandatory":"SpWeightsWeightV2Weight"}
Modifier: Default
System.AllExtrinsicsLen
Total length (in bytes) for all extrinsics put together, for the current block.
await api.query.system.allExtrinsicsLen()Returns: u32
Modifier: Optional
System.BlockHash
Map of block numbers to block hashes.
await api.query.system.blockHash(key1)- Key:
u32(hasher: Twox64Concat) - Returns:
H256
Modifier: Default
System.ExtrinsicData
Extrinsics data for the current block (maps an extrinsic's index to its data).
await api.query.system.extrinsicData(key1)- Key:
u32(hasher: Twox64Concat) - Returns:
Bytes
Modifier: Default
System.Number
The current block number being processed. Set by
execute_block.
await api.query.system.number()Returns: u32
Modifier: Default
System.ParentHash
Hash of the previous block.
await api.query.system.parentHash()Returns: H256
Modifier: Default
System.Digest
Digest of the current block, also part of the block header.
await api.query.system.digest()Returns: {"logs":"Vec<SpRuntimeDigestDigestItem>"}
Modifier: Default
System.Events
Events deposited for the current block. NOTE: The item is unbound and should therefore never be read on chain. It could otherwise inflate the PoV size of a block. Events have a large in-memory size. Box the events to not go out-of-memory just in case someone still reads them from within the runtime.
await api.query.system.events()Returns: Vec<FrameSystemEventRecord>
Modifier: Default
System.EventCount
The number of events in the
Events<T>list.
await api.query.system.eventCount()Returns: u32
Modifier: Default
System.EventTopics
Mapping between a topic (represented by T::Hash) and a vector of indexes of events in the
<Events<T>>list. All topic vectors have deterministic storage locations depending on the topic. This allows light-clients to leverage the changes trie storage tracking mechanism and in case of changes fetch the list of events of interest. The value has the type(BlockNumberFor<T>, EventIndex)because if we used only just theEventIndexthen in case if the topic has the same contents on the next block no notification will be triggered thus the event might be lost.
await api.query.system.eventTopics(key1)- Key:
H256(hasher: Blake2_128Concat) - Returns:
Vec<(u32,u32)>
Modifier: Default
System.LastRuntimeUpgrade
Stores the
spec_versionandspec_nameof when the last runtime upgrade happened.
await api.query.system.lastRuntimeUpgrade()Returns: {"specVersion":"Compact<u32>","specName":"Text"}
Modifier: Optional
System.UpgradedToU32RefCount
True if we have upgraded so that
type RefCountisu32. False (default) if not.
await api.query.system.upgradedToU32RefCount()Returns: bool
Modifier: Default
System.UpgradedToTripleRefCount
True if we have upgraded so that AccountInfo contains three types of
RefCount. False (default) if not.
await api.query.system.upgradedToTripleRefCount()Returns: bool
Modifier: Default
System.ExecutionPhase
The execution phase of the block.
await api.query.system.executionPhase()Returns: {"_enum":{"ApplyExtrinsic":"u32","Finalization":"Null","Initialization":"Null"}}
Modifier: Optional
Constants
System.BlockWeights
Block & extrinsics weights: base values and limits.
Type: {"baseBlock":"SpWeightsWeightV2Weight","maxBlock":"SpWeightsWeightV2Weight","perClass":"FrameSupportDispatchPerDispatchClassWeightsPerClass"}
SCALE-encoded value: 0x0378f3f2b900070010a5d4e813ffffffffffffffffc2a0a91d000107d07b9a4f971366666666666666a6010700cc7b9fae13ffffffffffffffbf010000c2a0a91d000107d0bfc384d11366666666666666e601070010a5d4e813ffffffffffffffff0107004429353a130000000000000040c2a0a91d00000000
System.BlockLength
The maximum length of a block (in bytes).
Type: {"max":"FrameSupportDispatchPerDispatchClassU32"}
SCALE-encoded value: 0x00003c000000500000005000
System.BlockHashCount
Maximum number of block number to block hash mappings to keep (oldest pruned first).
Type: u32
SCALE-encoded value: 0xfa000000
System.DbWeight
The weight of runtime database operations the runtime can invoke.
Type: {"read":"u64","write":"u64"}
SCALE-encoded value: 0x40787d010000000000e1f50500000000
System.Version
Get the chain's current version.
Type: {"specName":"Text","implName":"Text","authoringVersion":"u32","specVersion":"u32","implVersion":"u32","apis":"Vec<([u8;8],u32)>","transactionVersion":"u32","stateVersion":"u8"}
SCALE-encoded value: 0x10726f6f7410726f6f7401000000540000000000000048df6acb689907609b0400000037e397fc7c91f5e40200000040fe3ad401f8959a06000000d2bc9897eed08f1503000000f78b278be53f454c02000000ab3c0572291feb8b01000000bc9d89904f5b923f0100000037c8bb1350a9a2a804000000cbca25e39f14238702000000e65b00e46cedd0aa02000000d246ad053764b1ba0100000037e834f43398ba2d01000000c2ca758b6ccad9eb01000000a958571a3039ac61010000009b8f17f5e08e574601000000582211f65bb14b8905000000ed99c5acb25eedf503000000e377ce9116bcb5f1010000001300000000
System.SS58Prefix
The designated SS58 prefix of this chain. This replaces the "ss58Format" property declared in the chain spec. Reason is that the runtime should know about the prefix in order to make use of it as an identifier of the chain.
Type: u16
SCALE-encoded value: 0xc100
wss://root.rootnet.live/archive/ws · captured 2026-05-02