new WAN(string, number, Safe, table)
Constructor
Parameters:
| Name | Type | Description |
|---|---|---|
string |
name | name of asset |
number |
id | identity number of asset defined in BIP44 |
Safe |
walletSafe | Safe to keep wallets |
table |
walletStore | Wallet table that store wallet info |
- Source:
- hdwallet/chains/wan.js
Methods
-
<async> getAddress()
-
- Source:
- hdwallet/chains/wan.js
-
<async> getPrivateKey()
-
- Source:
- hdwallet/chains/wan.js
-
<async> getTxCount()
-
- Source:
- hdwallet/chains/wan.js
-
<async> signTransaction(number, object, string, WaleltOpt)
-
Sign transaction
Parameters:
Name Type Description numberwid wallet ID objecttx structured transaction to be signed stringpath path in HD wallet used to sign WaleltOptopt Wallet option to sign the tx - Source:
- hdwallet/chains/wan.js
Returns:
signed buffer- Type
- Buffer
-
<async> _getAddressByPath()
-
- Source:
- hdwallet/chains/wan.js