subscribeToUnshieldedTransactions
abstract fun subscribeToUnshieldedTransactions(address: String, transactionId: Int? = null): Flow<UnshieldedTransactionUpdate>
Subscribe to unshielded transactions for an address.
Returns a Flow of updates containing:
Transaction details (created/spent UTXOs)
Progress updates (highest transaction ID)
GraphQL Subscription:
subscription UnshieldedTransactions($address: UnshieldedAddress!, $transactionId: Int) {
unshieldedTransactions(address: $address, transactionId: $transactionId) {
... on UnshieldedTransaction {
transaction { id, hash, timestamp }
createdUtxos { owner, value, tokenType, outputIndex }
spentUtxos { owner, value, tokenType, outputIndex }
}
... on UnshieldedTransactionsProgress {
highestTransactionId
}
}
}Content copied to clipboard
Return
Flow of transaction updates (both transactions and progress)
Parameters
address
Unshielded address to track
transactionId
Start from this transaction ID (use last processed ID to resume)