Pays
Variant 25 v393frame_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)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Yes | none | |
| 1 | No | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
Yes
0x0000 Variant index 0 = YesNo
0x0101 Variant index 1 = NoCode 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