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].
api.tx.preimage.note_preimage(bytes: Bytes)| Argument | Type | Doc |
|---|---|---|
bytes | Bytes | Vec<u8> |
Call index: 0
Preimage.unnote_preimage
See [
Pallet::unnote_preimage].
api.tx.preimage.unnote_preimage(hash: H256)| Argument | Type | Doc |
|---|---|---|
hash | H256 | T::Hash |
Call index: 1
Preimage.request_preimage
See [
Pallet::request_preimage].
api.tx.preimage.request_preimage(hash: H256)| Argument | Type | Doc |
|---|---|---|
hash | H256 | T::Hash |
Call index: 2
Preimage.unrequest_preimage
See [
Pallet::unrequest_preimage].
api.tx.preimage.unrequest_preimage(hash: H256)| Argument | Type | Doc |
|---|---|---|
hash | H256 | T::Hash |
Call index: 3
Events
Preimage.Noted
A preimage has been noted.
| Field | Type | Doc |
|---|---|---|
hash | H256 |
Preimage.Requested
A preimage has been requested.
| Field | Type | Doc |
|---|---|---|
hash | H256 |
Preimage.Cleared
A preimage has ben cleared.
| Field | Type | Doc |
|---|---|---|
hash | H256 |
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.
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
await api.query.preimage.preimageFor(key1)- Key:
(H256,u32)(hasher: Identity) - Returns:
Bytes
Modifier: Optional
wss://root.rootnet.live/archive/ws · captured 2026-05-02