ReserveData
Composite 409 v393pallet_balances::types::ReserveData
About This Type
Structured type: ReserveData.
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 = id: [u8; 8], amount: u64
0x<field0><field1>field 0 id: [u8; 8]field 1 amount: u64Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode ReserveData
const value = registry.createType("ReserveData", {
id: 0,
amount: 1_000_000_000n
});
console.log("Hex:", value.toHex());Type Parameters
ReserveIdentifier = [u8; 8]
Balance = u64
Referenced By (1)
Type Information
- Type ID
- 409
- Kind
- Composite
- Path
- pallet_balances::types::ReserveData
- Runtime
- v393