Skip to content

Preimage pallet

Derived from live runtime metadata on TRN root (pallet index 45, captured 2026-05-02). For prose-style documentation see Preimage on the curated reference side.

Pallet index
45
Calls
4
Events
3
Errors
6
Storage items
2
Constants
0

Calls (extrinsics)

Preimage.note_preimage

See [Pallet::note_preimage].

ts
api.tx.preimage.note_preimage(bytes: Bytes)
ArgumentTypeDoc
bytesBytesVec<u8>

Call index: 0

Preimage.unnote_preimage

See [Pallet::unnote_preimage].

ts
api.tx.preimage.unnote_preimage(hash: H256)
ArgumentTypeDoc
hashH256T::Hash

Call index: 1

Preimage.request_preimage

See [Pallet::request_preimage].

ts
api.tx.preimage.request_preimage(hash: H256)
ArgumentTypeDoc
hashH256T::Hash

Call index: 2

Preimage.unrequest_preimage

See [Pallet::unrequest_preimage].

ts
api.tx.preimage.unrequest_preimage(hash: H256)
ArgumentTypeDoc
hashH256T::Hash

Call index: 3

Events

Preimage.Noted

A preimage has been noted.

FieldTypeDoc
hashH256

Preimage.Requested

A preimage has been requested.

FieldTypeDoc
hashH256

Preimage.Cleared

A preimage has ben cleared.

FieldTypeDoc
hashH256

Errors

Preimage.TooBig

Preimage is too large to store on-chain.

Preimage.AlreadyNoted

Preimage has already been noted on-chain.

Preimage.NotAuthorized

The user is not authorized to perform this action.

Preimage.NotNoted

The preimage cannot be removed since it has not yet been noted.

Preimage.Requested

A preimage may not be removed when there are outstanding requests.

Preimage.NotRequested

The preimage request cannot be removed since no outstanding requests exist.

Storage

Preimage.StatusFor

The request status of a given hash.

ts
await api.query.preimage.statusFor(key1)
  • Key: H256 (hasher: Identity)
  • Returns: {"_enum":{"Unrequested":"{\"deposit\":\"(SeedPrimitivesSignatureAccountId20,u128)\",\"len\":\"u32\"}","Requested":"{\"deposit\":\"Option<(SeedPrimitivesSignatureAccountId20,u128)>\",\"count\":\"u32\",\"len\":\"Option<u32>\"}"}}

Modifier: Optional

Preimage.PreimageFor

ts
await api.query.preimage.preimageFor(key1)
  • Key: (H256,u32) (hasher: Identity)
  • Returns: Bytes

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.