Skip to content

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)
ArgumentTypeDoc
callCallBox<<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>"})
ArgumentTypeDoc
callCallBox<<T as Config>::RuntimeCall>
weight{"refTime":"Compact&lt;u64&gt;","proofSize":"Compact&lt;u64&gt;"}Weight

Call index: 1

Sudo.set_key ​

See [Pallet::set_key].

ts
api.tx.sudo.set_key(new: [u8;20])
ArgumentTypeDoc
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)
ArgumentTypeDoc
who[u8;20]AccountIdLookupOf<T>
callCallBox<<T as Config>::RuntimeCall>

Call index: 3

Events ​

Sudo.Sudid ​

A sudo just took place. [result]

FieldTypeDoc
sudo_resultResult&lt;Null, SpRuntimeDispatchError&gt;

Sudo.KeyChanged ​

The [sudoer] just switched identity; the old key is supplied if one existed.

FieldTypeDoc
old_sudoerOption&lt;SeedPrimitivesSignatureAccountId20&gt;

Sudo.SudoAsDone ​

A sudo just took place. [result]

FieldTypeDoc
sudo_resultResult&lt;Null, SpRuntimeDispatchError&gt;

Errors ​

Sudo.RequireSudo ​

Sender must be the Sudo account

Storage ​

Sudo.Key ​

The AccountId of 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

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