unrequest_preimage

Call v133 → current #3

Removes request for a preimage.

View calls on chain

Click items to navigate. Pan and zoom to explore.

Used by: validatorsdevelopers

The Big Picture

Allows preimage to be cleared.

Use Cases

  • Release preimage after use

From Chain Metadata

Clear a previously made request for a preimage. NOTE: THIS MUST NOT BE CALLED ON `hash` MORE TIMES THAN `request_preimage`.

Input Parameters

#NameTypeDescription
0
hash
H256 hash (H256)

Permissions

Origin
Unknown
Required Role

Permission data inferred from metadata. May be incomplete.

Requirements

  • Preimage is requested

Effects

Events Emitted

Storage Modified

Postconditions

  • Request removed

Code Examples

import { ApiPromise, WsProvider } from "@polkadot/api";
import { stringCamelCase } from "@polkadot/util";

const provider = new WsProvider("wss://entrypoint-finney.opentensor.ai:443");
const api = await ApiPromise.create({ provider });

// Build unrequest_preimage call
const hash = 0 as any /* H256 */;

const call = api.tx[stringCamelCase("Preimage")][stringCamelCase("unrequest_preimage")](
  hash
);

Runtime Info

Pallet Index
14
Call Index
3
First Version
v133
Current Version
v393