TransactionSignature
Composite 333 v393ethereum::transaction::legacy::TransactionSignature
About This Type
Structured type: TransactionSignature.
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 (3)
| # | Name | Type |
|---|---|---|
| 0 | v | TransactionRecoveryId |
| 1 | r | H256 |
| 2 | s | H256 |
SCALE Encoding
- Rule
- 3 fields encoded consecutively in declaration order. No field names or delimiters.
- Size
- sum of field sizes
Examples
Struct with 3 fields = v: TransactionRecoveryId, r: H256, s: H256
0x<field0><field1><field2>field 0 v: TransactionRecoveryIdfield 1 r: H256field 2 s: H256Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode TransactionSignature
const value = registry.createType("TransactionSignature", {
v: 0,
r: 0,
s: 0
});
console.log("Hex:", value.toHex());Referenced By (4)
Type Information
- Type ID
- 333
- Kind
- Composite
- Path
- ethereum::transaction::legacy::TransactionSignature
- Runtime
- v393