Skip to main content

Calls

notePreimage

Register a preimage on-chain. If the preimage was previously requested, no fees or deposits are taken for providing the preimage. Otherwise, a deposit is taken proportional to the size of the preimage. Namespace
Type

requestPreimage

Request a preimage be uploaded to the chain without paying any fees or deposits. If the preimage requests has already been provided on-chain, we unreserve any deposit a user may have paid, and take the control of the preimage out of their hands. Namespace
Type

unnotePreimage

Clear an unrequested preimage from the runtime storage. Namespace
Type

unrequestPreimage

Clear a previously made request for a preimage. IMPORTANT: This must not be called onhashmore times thanrequest_preimage. Namespace
Type

Storage

preimageFor

The preimages stored by this pallet. Namespace
Type

statusFor

The request status of a given hash. Namespace
Type

Events

Cleared

A preimage has ben cleared. Namespace
Type

Noted

A preimage has been noted. Namespace
Type

Requested

A preimage has been requested. Namespace
Type

Errors

AlreadyNoted

Preimage has already been noted on-chain. Namespace

NotAuthorized

The user is not authorized to perform this action. Namespace

NotNoted

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

NotRequested

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

Requested

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

TooLarge

Preimage is too large to store on-chain. Namespace
undefined