UsedGas

Composite 601 v393

fp_evm::UsedGas

About This Type

Structured type: UsedGas.

A struct-like type where each field is encoded in declaration order.

Encoding: Fields encoded consecutively in declaration order, no field names or separators.

Fields (2)

#NameType
0standardU256
1effectiveU256

SCALE Encoding

Rule
2 fields encoded consecutively in declaration order. No field names or delimiters.
Size
sum of field sizes

Examples

Struct with 2 fields = standard: U256, effective: U256
0x<field0><field1>
field 0 standard: U256
field 1 effective: U256

Code Examples

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

const registry = new TypeRegistry();

// Encode UsedGas
const value = registry.createType("UsedGas", {
  standard: 0,
  effective: 0
});
console.log("Hex:", value.toHex());

Referenced By (2)

Type Information

Type ID
601
Kind
Composite
Path
fp_evm::UsedGas
Runtime
v393