[#wallet-DbTxnListener]
= xref:wallet.adoc[wallet]::DbTxnListener
:relfileprefix: ../
:mrdocs:

Callbacks invoked when a wallet database transaction commits or aborts&period;

== Synopsis

Declared in `&lt;wallet&sol;walletdb&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct DbTxnListener;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/DbTxnListener/on_abort.adoc[`on&lowbar;abort`] 
| Callback invoked when the transaction commits (`on&lowbar;commit`) and when it aborts (`on&lowbar;abort`)&period;
| xref:wallet/DbTxnListener/on_commit.adoc[`on&lowbar;commit`] 
| Callback invoked when the transaction commits (`on&lowbar;commit`) and when it aborts (`on&lowbar;abort`)&period;
|===



[.small]#Created with https://www.mrdocs.com[MrDocs]#
