Basic
Composite 596 v393evm::backend::Basic
About This Type
Structured type: Basic.
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)
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 = balance: U256, nonce: U256
0x<field0><field1>field 0 balance: U256field 1 nonce: U256Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Basic
const value = registry.createType("Basic", {
balance: 0,
nonce: 0
});
console.log("Hex:", value.toHex());Type Information
- Type ID
- 596
- Kind
- Composite
- Path
- evm::backend::Basic
- Runtime
- v393