feat: add transactions method on wallet

This commit is contained in:
Matthew
2023-12-07 13:24:39 -06:00
parent bbc6e1a43c
commit a1a45996fc
6 changed files with 46 additions and 1 deletions

View File

@@ -15,6 +15,15 @@ class LiveWalletTest {
println("Balance: ${wallet.getBalance().total}")
assert(wallet.getBalance().total > 0uL)
println("Transactions count: ${wallet.transactions().count()}")
val transactions = wallet.transactions().take(3)
for (tx in transactions) {
val sentAndReceived = wallet.sentAndReceived(tx)
println("Transaction: ${tx.txid()}")
println("Sent ${sentAndReceived.sent}")
println("Received ${sentAndReceived.received}")
}
}
@Test