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