Command: { create<I>(base?): Command; decode(input,
length?): Command; encode(message,
writer?): Writer; fromJSON(object): Command; fromPartial<I>(object): Command; toJSON(message): unknown; } Type declaration
create:function
- create<I>(base?): Command
Type Parameters
- I extends {
command?: string;
id?: Uint8Array;
keyId?: string;
maxGasCost?: number;
params?: Uint8Array;
type?: CommandType;
} & {
command?: string;
id?: Uint8Array;
keyId?: string;
maxGasCost?: number;
params?: Uint8Array;
type?: CommandType;
} & {
[K in string | number | symbol]: never
}
decode:function
- decode(input, length?): Command
Parameters
- input: Uint8Array | Reader
Optional
length: number
encode:function
- encode(message, writer?): Writer
Parameters
- message: Command
- writer: Writer = ...
Returns Writer
fromJSON:function
fromPartial:function
- fromPartial<I>(object): Command
Type Parameters
- I extends {
command?: string;
id?: Uint8Array;
keyId?: string;
maxGasCost?: number;
params?: Uint8Array;
type?: CommandType;
} & {
command?: string;
id?: Uint8Array;
keyId?: string;
maxGasCost?: number;
params?: Uint8Array;
type?: CommandType;
} & {
[K in string | number | symbol]: never
}
toJSON:function
- toJSON(message): unknown
Returns unknown