RawOrigin
Variant 162 v393pallet_ethereum::RawOrigin
About This Type
Enum type: RawOrigin.
A tagged union where the first byte selects which variant is active, followed by that variant's data.
Encoding: 1-byte variant index followed by the selected variant's field data.
Variants (1)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | EthereumTransaction |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 1 possible variants.
- Size
- variable (1+ bytes)
Examples
EthereumTransaction = EthereumTransaction(H160)
0x00<field0>00 Variant index 0 = EthereumTransactionfield 0 field0: H160Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode RawOrigin — variant "EthereumTransaction"
const value = registry.createType("RawOrigin", { EthereumTransaction: { value: 0 } });
console.log("Hex:", value.toHex());Referenced By (2)
Type Information
- Type ID
- 162
- Kind
- Variant
- Path
- pallet_ethereum::RawOrigin
- Runtime
- v393