Type Aliases
AminoMsg
AminoMsg: { type: string; value: any }
ChainInfo
ChainInfo: { addressPrefix: string; coinType: string; key: string }
Type declaration
addressPrefix: string
coinType: string
key: string
Coin
Coin: { amount: string; denom: string }
Type declaration
amount: string
denom: string
CreateWalletParams
Create
Wallet
Params
: { addressIndex
: number; chainInfos
: ChainInfo[]; colorIndex
: number; mnemonic
: string; name
: string; password
: string; type
: "create" | "import" }Type declaration
addressIndex: number
colorIndex: number
mnemonic: string
name: string
password: string
type: "create" | "import"
IChildKey
IChildKey: { privateKey: Uint8Array | null; publicKey: Uint8Array | null; sign: any }
Type declaration
privateKey: Uint8Array | null
publicKey: Uint8Array | null
sign:function
- sign(hash: Uint8Array): Uint8Array
Parameters
Returns Uint8Array
IHDKey
IHDKey: { privateKey: Uint8Array | null; publicKey: Uint8Array | null; derive: any }
Type declaration
privateKey: Uint8Array | null
publicKey: Uint8Array | null
derive:function
Key
Key
<T>: { addressIndex
: number; addresses
: Record<T, string>; cipher
: string; colorIndex
: number; id
: string; name
: string; pubKeys
?: Record<T, string>; walletType
: WALLETTYPE }Type Parameters
Type declaration
addressIndex: number
addresses: Record<T, string>
cipher: string
colorIndex: number
id: string
name: string
Optional pubKeys?: Record<T, string>
Keystore
Keystore
<T>: Record<string, Key<T>>Type Parameters
Pubkey
Pubkey: { type: string; value: any }
Type declaration
Readonly type: string
Readonly value: any
SignDoc
SignDoc: { accountNumber: string; authInfoBytes: Uint8Array; bodyBytes: Uint8Array; chainId: string }
Type declaration
accountNumber: string
authInfoBytes: Uint8Array
bodyBytes: Uint8Array
chainId: string
StdFee
Std
Fee
: { amount
: readonly Coin[]; gas
: string; granter
?: string }Type declaration
Readonly amount: readonly Coin[]
Readonly gas: string
Optional Readonly granter?: string
StdSignDoc
Std
Sign
Doc
: { account_number
: string; chain_id
: string; fee
: StdFee; memo
: string; msgs
: readonly AminoMsg[]; sequence
: string }Type declaration
Readonly account_number: string
Readonly chain_id: string
Readonly fee: StdFee
Readonly memo: string
Readonly msgs: readonly AminoMsg[]
Readonly sequence: string
StdSignature
Std
Signature
: { pub_key
: Pubkey; signature
: string }Type declaration
Readonly pub_key: Pubkey
Readonly signature: string
WalletOptions
WalletOptions: { addressPrefix: string; paths: string[]; pubKeyBech32Address?: boolean }
Type declaration
addressPrefix: string
paths: string[]
Optional pubKeyBech32Address?: boolean
Initialize storage layer.