feat: add transactions method on wallet

This commit is contained in:
Matthew committed 2023-12-15 11:03:25 -06:00
1 parent bbc6e1a43c
commit a1a45996fc
6 files changed
+46 -1

No files matched your search

@@ -19,6 +19,15 @@ class LiveWalletTest {
println("Balance: $balance")
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