mirror of
https://github.com/haveno-dex/haveno.git
synced 2025-08-01 19:26:09 -04:00
support getXmrPrimaryAddress(), getXmrNewSubaddress()
This commit is contained in:
parent
fa15612586
commit
ffccf83ac5
4 changed files with 47 additions and 14 deletions
|
@ -268,13 +268,17 @@ public class CoreApi {
|
|||
public BalancesInfo getBalances(String currencyCode) {
|
||||
return walletsService.getBalances(currencyCode);
|
||||
}
|
||||
|
||||
|
||||
public String getXmrSeed() {
|
||||
return walletsService.getXmrSeed();
|
||||
}
|
||||
|
||||
public String getNewDepositAddress() {
|
||||
return walletsService.getNewDepositAddress();
|
||||
public String getXmrPrimaryAddress() {
|
||||
return walletsService.getXmrPrimaryAddress();
|
||||
}
|
||||
|
||||
public String getXmrNewSubaddress() {
|
||||
return walletsService.getXmrNewSubaddress();
|
||||
}
|
||||
|
||||
public List<MoneroTxWallet> getXmrTxs() {
|
||||
|
|
|
@ -160,12 +160,16 @@ class CoreWalletsService {
|
|||
return new BalancesInfo(getBtcBalances(), getXmrBalances());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
String getXmrSeed() {
|
||||
return xmrWalletService.getWallet().getMnemonic();
|
||||
}
|
||||
|
||||
String getNewDepositAddress() {
|
||||
String getXmrPrimaryAddress() {
|
||||
return xmrWalletService.getWallet().getPrimaryAddress();
|
||||
}
|
||||
|
||||
String getXmrNewSubaddress() {
|
||||
accountService.checkAccountOpen();
|
||||
return xmrWalletService.getWallet().createSubaddress(0).getAddress();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue