Multisig
Composite 469 v393pallet_multisig::Multisig
About This Type
Structured type: Multisig.
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 (4)
| # | Name | Type |
|---|---|---|
| 0 | when | Timepoint |
| 1 | deposit | u64 |
| 2 | depositor | AccountId |
| 3 | approvals | BoundedVec |
SCALE Encoding
- Rule
- 4 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 4 fields = when: Timepoint, deposit: u64, depositor: AccountId, approvals: BoundedVec
0x<field0><field1><field2><field3>field 0 when: Timepointfield 1 deposit: u64field 2 depositor: AccountIdfield 3 approvals: BoundedVecCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode Multisig
const value = registry.createType("Multisig", {
when: 0,
deposit: 1_000_000_000n,
depositor: "5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
approvals: 0
});
console.log("Hex:", value.toHex());Type Parameters
BlockNumber = u32
Balance = u64
AccountId = AccountId
MaxApprovals
Type Information
- Type ID
- 469
- Kind
- Composite
- Path
- pallet_multisig::Multisig
- Runtime
- v393