Class: WAN

WAN

WAN chain

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
number wid wallet ID
object tx structured transaction to be signed
string path path in HD wallet used to sign
WaleltOpt opt Wallet option to sign the tx
Source:
hdwallet/chains/wan.js
Returns:
signed buffer
Type
Buffer

<async> _getAddressByPath()

Source:
hdwallet/chains/wan.js