Skip to content

Wallet Transactions Export: Add BIP-329 support#4799

Merged
NicolasDorier merged 6 commits into
btcpayserver:masterfrom
dennisreimann:bip-329
Mar 27, 2023
Merged

Wallet Transactions Export: Add BIP-329 support#4799
NicolasDorier merged 6 commits into
btcpayserver:masterfrom
dennisreimann:bip-329

Conversation

@dennisreimann

@dennisreimann dennisreimann commented Mar 21, 2023

Copy link
Copy Markdown
Contributor

Adds support for the BIP 329 export format.

Sample transactions export:

{"type":"tx","ref":"9eb4b1f69dc0aad88f2530fdd124c77021c1633500e14369d0896bf75a025596","label":"microtransaction"}
{"type":"tx","ref":"98ee2e20e45967eeda330b191d881584d1e02ea05e633e4cb7c48aea8980fc63","label":"test"}
{"type":"tx","ref":"84ce8b198d85e715588da114b7b441833cfc4892ba9aa1f7f3cfbfdcf2ca1235","label":"Mining Income, microtransaction, test"}

Currently only the transaction data is exported, but I think we can also leverage the new labeling system to export other types, like addr as well. @NicolasDorier

Closes #4536.

grafik

@dennisreimann dennisreimann added Enhancement Improvements to an existing feature Wallet Related to internal BTCPay wallet labels Mar 21, 2023
@NicolasDorier

NicolasDorier commented Mar 22, 2023

Copy link
Copy Markdown
Member

Can I test it somewhere with another wallet? I believe you should also export the addresses. Me or @Kukks can add that to the PR after.

Also it should be Wallet Labels Export (BIP-329) rather than underscriptive JSON (bip-329) I believe.

Comment thread BTCPayServer/Services/Wallets/Export/TransactionsExport.cs Outdated
Comment thread BTCPayServer/Views/UIWallets/WalletTransactions.cshtml Outdated
Comment thread BTCPayServer/Services/Wallets/Export/TransactionsExport.cs Outdated
Comment thread BTCPayServer/Services/Wallets/Export/TransactionsExport.cs Outdated
Comment thread BTCPayServer/Services/Wallets/Export/TransactionsExport.cs
Comment thread BTCPayServer/Services/Wallets/Export/TransactionsExport.cs Outdated
@NicolasDorier

NicolasDorier commented Mar 23, 2023

Copy link
Copy Markdown
Member

I give up implementing address export for now.
I need to refactor the export stuff so we don't need another hack overload.

@dennisreimann dennisreimann marked this pull request as ready for review March 23, 2023 05:54
@NicolasDorier NicolasDorier merged commit c53d527 into btcpayserver:master Mar 27, 2023
@dennisreimann dennisreimann deleted the bip-329 branch March 27, 2023 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improvements to an existing feature Wallet Related to internal BTCPay wallet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Support BIP 329: Wallet Labels Export Format

4 participants