2020-04-09 15:33:11 -05:00
|
|
|
---
|
|
|
|
title: Wallet Get Address APIs
|
|
|
|
id: 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
|
2024-11-26 15:20:13 -06:00
|
|
|
the resulting `BIP32Path`.
|