Pays

Variant 25 v393

frame_support::dispatch::Pays

About This Type

Whether a transaction charges fees: Yes or No.

Some operations are fee-free (Pays::No), typically sudo calls or inherents. Most user-submitted transactions are Pays::Yes.

Variants (2)

IndexNameFieldsDocs
0Yesnone
1Nonone

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 2 possible variants.
Size
variable (1+ bytes)

Examples

Yes
0x00
00 Variant index 0 = Yes
No
0x01
01 Variant index 1 = No

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode Pays — variant "Yes"
const value = registry.createType("Pays", "Yes");
console.log("Hex:", value.toHex());

Referenced By (1)

Type Information

Type ID
25
Kind
Variant
Path
frame_support::dispatch::Pays
Runtime
v393