Coin: { create(base?): Coin; decode(input,
length?): Coin; encode(message,
writer?): Writer; fromJSON(object): Coin; fromPartial(object): Coin; toJSON(message): unknown; } Type declaration
create:function
- create(base?): Coin
Parameters
Optional
base: {
amount?: string;
denom?: string;
}
Optional
amount?: string
Optional
denom?: string
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(object): Coin
Parameters
object: {
amount?: string;
denom?: string;
}
Optional
amount?: string
Optional
denom?: string
toJSON:function
- toJSON(message): unknown
Returns unknown