AuthorizationListItem
Composite 342 v393ethereum::transaction::eip7702::AuthorizationListItem
About This Type
Structured type: AuthorizationListItem.
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 | chain_id | u64 |
| 1 | address | H160 |
| 2 | nonce | U256 |
| 3 | signature | MalleableTransactionSignature |
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 = chain_id: u64, address: H160, nonce: U256, signature: MalleableTransactionSignature
0x<field0><field1><field2><field3>field 0 chain_id: u64field 1 address: H160field 2 nonce: U256field 3 signature: MalleableTransactionSignatureCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode AuthorizationListItem
const value = registry.createType("AuthorizationListItem", {
chain_id: 1_000_000_000n,
address: 0,
nonce: 0,
signature: 0
});
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 342
- Kind
- Composite
- Path
- ethereum::transaction::eip7702::AuthorizationListItem
- Runtime
- v393