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

@@ -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