mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2024-11-20 10:13:26 +01:00
891e6da11d
* GetAddress Wallet API call * Add ability to get unfunded address * Generate new address if no unfunded addresses * Add test * Add wallet get address documentation
611 B
611 B
title | id |
---|---|
Wallet Get Address APIs | wallet-get-address |
The Bitcoin-S wallet has a few different functions for getting a wallet address that all server different purposes.
First, there is getNewAddress
. This function will always return a new a address
determined by the next address available address index.
Second, we have getUnusedAddress
. This function will return an address that has
not ever received funds.
Third, there is getAddress
. This function takes in an AccountDb
, HDChainType
,
and an Int
. This will return the address associated with the pubkey at
the resulting BIP32Path
.