Sudo pallet
Derived from live runtime metadata on TRN root (pallet index 14, captured 2026-05-02). For prose-style documentation see Sudo on the curated reference side.
- Pallet index
14- Calls
- 4
- Events
- 3
- Errors
- 1
- Storage items
- 1
- Constants
- 0
Calls (extrinsics)
Sudo.sudo
See [
Pallet::sudo].
ts
api.tx.sudo.sudo(call: Call)| Argument | Type | Doc |
|---|---|---|
call | Call | Box<<T as Config>::RuntimeCall> |
Call index: 0
Sudo.sudo_unchecked_weight
See [
Pallet::sudo_unchecked_weight].
ts
api.tx.sudo.sudo_unchecked_weight(call: Call, weight: {"refTime":"Compact<u64>","proofSize":"Compact<u64>"})| Argument | Type | Doc |
|---|---|---|
call | Call | Box<<T as Config>::RuntimeCall> |
weight | {"refTime":"Compact<u64>","proofSize":"Compact<u64>"} | Weight |
Call index: 1
Sudo.set_key
See [
Pallet::set_key].
ts
api.tx.sudo.set_key(new: [u8;20])| Argument | Type | Doc |
|---|---|---|
new | [u8;20] | AccountIdLookupOf<T> |
Call index: 2
Sudo.sudo_as
See [
Pallet::sudo_as].
ts
api.tx.sudo.sudo_as(who: [u8;20], call: Call)| Argument | Type | Doc |
|---|---|---|
who | [u8;20] | AccountIdLookupOf<T> |
call | Call | Box<<T as Config>::RuntimeCall> |
Call index: 3
Events
Sudo.Sudid
A sudo just took place. [result]
| Field | Type | Doc |
|---|---|---|
sudo_result | Result<Null, SpRuntimeDispatchError> |
Sudo.KeyChanged
The [sudoer] just switched identity; the old key is supplied if one existed.
| Field | Type | Doc |
|---|---|---|
old_sudoer | Option<SeedPrimitivesSignatureAccountId20> |
Sudo.SudoAsDone
A sudo just took place. [result]
| Field | Type | Doc |
|---|---|---|
sudo_result | Result<Null, SpRuntimeDispatchError> |
Errors
Sudo.RequireSudo
Sender must be the Sudo account
Storage
Sudo.Key
The
AccountIdof the sudo key.
ts
await api.query.sudo.key()Returns: [u8;20]
Modifier: Optional
Source: live chain metadata from
wss://root.rootnet.live/archive/ws · captured 2026-05-02