Legacy
Tx
: { decode
(input
: Uint8Array | Reader, length
?: number): LegacyTx; encode
(message
: LegacyTx, writer
?: Writer): Writer; fromJSON
(object
: any): LegacyTx; fromPartial
<I>(object
: I): LegacyTx; toJSON
(message
: LegacyTx): unknown; }
Type declaration
-
decode:function
- decode(input: Uint8Array | Reader, length?: number): LegacyTx
-
Parameters
-
input: Uint8Array | Reader
-
Optional
length: number
-
encode:function
- encode(message: LegacyTx, writer?: Writer): Writer
-
Returns Writer
-
fromJSON:function
-
fromPartial:function
- fromPartial<I>(object: I): LegacyTx
-
Type Parameters
-
I extends {
data?: Uint8Array;
gas?: number;
gasPrice?: string;
nonce?: number;
r?: Uint8Array;
s?: Uint8Array;
to?: string;
v?: Uint8Array;
value?: string;
} & {
data?: Uint8Array;
gas?: number;
gasPrice?: string;
nonce?: number;
r?: Uint8Array;
s?: Uint8Array;
to?: string;
v?: Uint8Array;
value?: string;
} & { [ K in string | number | symbol]: never }
-
toJSON:function
- toJSON(message: LegacyTx): unknown
-
Returns unknown