Add a way to get last unused address
This commit is contained in:
parent
498fabf97d
commit
076de31dcc
@ -89,6 +89,14 @@ trait OfflineWalletOperations<B>: WalletHolder<B> {
|
|||||||
.to_string()
|
.to_string()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn get_last_unused_address(&self) -> String {
|
||||||
|
self.get_wallet()
|
||||||
|
.get_address(AddressIndex::LastUnused)
|
||||||
|
.unwrap()
|
||||||
|
.address
|
||||||
|
.to_string()
|
||||||
|
}
|
||||||
|
|
||||||
fn get_balance(&self) -> Result<u64, Error> {
|
fn get_balance(&self) -> Result<u64, Error> {
|
||||||
self.get_wallet().get_balance()
|
self.get_wallet().get_balance()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user