TransactionAction
Variant 332 v393ethereum::transaction::legacy::TransactionAction
About This Type
Enum type: TransactionAction.
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 (2)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Call | ||
| 1 | Create | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 2 possible variants.
- Size
- variable (1+ bytes)
Examples
Call = Call(H160)
0x00<field0>00 Variant index 0 = Callfield 0 field0: H160Create
0x0101 Variant index 1 = CreateCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode TransactionAction — variant "Call"
const value = registry.createType("TransactionAction", { Call: { value: 0 } });
console.log("Hex:", value.toHex());Referenced By (4)
Type Information
- Type ID
- 332
- Kind
- Variant
- Path
- ethereum::transaction::legacy::TransactionAction
- Runtime
- v393