diff --git a/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java b/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java index f814f56..aaef76b 100644 --- a/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java +++ b/app/src/main/java/cy/agorise/crystalwallet/dao/BitcoinAddressDao.java @@ -22,6 +22,9 @@ public interface BitcoinAddressDao { @Query("SELECT COUNT(*) FROM bitcoin_address ba WHERE ba.address = :address") Boolean addressExists(String address); + @Query("SELECT * FROM bitcoin_address ba WHERE ba.address = :address") + BitcoinAddress getdadress(String address); + @Insert(onConflict = OnConflictStrategy.REPLACE) public long[] insertBitcoinAddresses(BitcoinAddress... addresses); }