new Wallet(uri)
HTTPWallet
Parameters:
Name | Type | Description |
---|---|---|
uri |
String |
- Source:
Members
retoken
- Source:
- See:
-
- Wallet#retoken
Methods
(private) _init()
Initialize the wallet.
- Source:
addSharedKey(accountnullable, key) → {Promise}
Add a public account/purpose key to the wallet for multisig.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
account |
String | Number |
<nullable> |
|
key |
Base58String | Account (bip44) or Purpose (bip45) key (can be in base58 form). |
- Source:
Returns:
- Type
- Promise
createAccount()
- Source:
- See:
-
- Wallet#createAccount
createAddress()
- Source:
- See:
-
- Wallet#createAddress
createChange()
- Source:
- See:
-
- Wallet#createAddress
createNested()
- Source:
- See:
-
- Wallet#createAddress
createTX()
- Source:
- See:
-
- Wallet#createTX
getAccount()
- Source:
- See:
-
- Wallet#getAccount
getAccounts()
- Source:
- See:
-
- Wallet#getAccounts
getBalance()
- Source:
- See:
-
- Wallet#getBalance
getBlock()
- Source:
- See:
-
- Wallet#getBlock
getBlocks()
- Source:
- See:
-
- Wallet#getBlocks
getCoin()
- Source:
- See:
-
- Wallet#getCoin
getCoins()
- Source:
- See:
-
- Wallet#getCoins
getHistory()
- Source:
- See:
-
- Wallet#getHistory
getInfo()
- Source:
- See:
-
- HTTPClient#getWallet
getKey(address) → {Promise}
Get wallet key.
Parameters:
Name | Type | Description |
---|---|---|
address |
Base58Address |
- Source:
Returns:
- Type
- Promise
getLast()
- Source:
- See:
-
- Wallet#getLast
getLocked() → {Promise}
Get locked coins.
- Source:
Returns:
- Type
- Promise
getMaster()
- Source:
- See:
-
- Wallet#master
getPending()
- Source:
- See:
-
- Wallet#getPending
getRange()
- Source:
- See:
-
- Wallet#getRange
getTX()
- Source:
- See:
-
- Wallet#getTX
getWIF(address, passphrasenullable) → {Promise}
Get wallet key WIF dump.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
address |
Base58Address | ||
passphrase |
String |
<nullable> |
- Source:
Returns:
- Type
- Promise
importAddress(account, address) → {Promise}
Import address.
Parameters:
Name | Type | Description |
---|---|---|
account |
Number | String | |
address |
String |
- Source:
Returns:
- Type
- Promise
importPrivate(account, key) → {Promise}
Import private key.
Parameters:
Name | Type | Description |
---|---|---|
account |
Number | String | |
key |
String |
- Source:
Returns:
- Type
- Promise
importPublic(account, key) → {Promise}
Import public key.
Parameters:
Name | Type | Description |
---|---|---|
account |
Number | String | |
key |
String |
- Source:
Returns:
- Type
- Promise
lock() → {Promise}
Lock wallet.
- Source:
Returns:
- Type
- Promise
lockCoin(hash, index) → {Promise}
Lock a coin.
Parameters:
Name | Type | Description |
---|---|---|
hash |
String | |
index |
Number |
- Source:
Returns:
- Type
- Promise
(private) onDisconnect() → {Promise}
Wait for websocket disconnection.
- Source:
Returns:
- Type
- Promise
removeSharedKey(accountnullable, key) → {Promise}
Remove a public account/purpose key to the wallet for multisig.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
account |
String | Number |
<nullable> |
|
key |
Base58String | Account (bip44) or Purpose (bip45) key (can be in base58 form). |
- Source:
Returns:
- Type
- Promise
resend() → {Promise}
Resend wallet transactions.
- Source:
Returns:
- Type
- Promise
send()
- Source:
- See:
-
- HTTPClient#walletSend
setPassphrase()
- Source:
- See:
-
- Wallet#setPassphrase
sign()
- Source:
- See:
-
- Wallet#sign
unlock(passphrase, timeout) → {Promise}
Unlock wallet.
Parameters:
Name | Type | Description |
---|---|---|
passphrase |
String | |
timeout |
Number |
- Source:
Returns:
- Type
- Promise
unlockCoin(hash, index) → {Promise}
Unlock a coin.
Parameters:
Name | Type | Description |
---|---|---|
hash |
String | |
index |
Number |
- Source:
Returns:
- Type
- Promise
zap()
- Source:
- See:
-
- Wallet#zap