Consider unifying activity rows that belong to the same underlying Bitcoin transaction #853

Closed
opened 2026-08-07 19:35:11 +00:00 by pseudoramdom · 11 comments
pseudoramdom commented 2026-08-07 19:35:11 +00:00 (Migrated from github.com)

Today, sends and receives are presented as independent activity rows. This is straightforward for transactions containing a single recipient.
But this becomes misleading when one transaction contains multiple recipients.

Consider the scenario here -
Bob makes a single transaction paying Alice 0.2BTC and Charlie 0.1 BTC

The activity list displays 2 separate send entries, even though they both belong to the same transaction and share the same TXID, confirmations, timestamp, fee, inputs, replacement history (RBF).

Image

Navigating to the detail view of one of the entires, the page is titled "Transaction" but the primary content describes only the selected destination output, which seems to be conflating a transaction & an output.

Image
Today, sends and receives are presented as independent activity rows. This is straightforward for transactions containing a single recipient. But this becomes misleading when one transaction contains multiple recipients. Consider the scenario here - Bob makes a single transaction paying Alice 0.2BTC and Charlie 0.1 BTC The activity list displays 2 separate send entries, even though they both belong to the same transaction and share the same TXID, confirmations, timestamp, fee, inputs, replacement history (RBF). <img width="589" height="165" alt="Image" src="https://git.fish.foo/attachments/e3319a61-ed74-4df5-b756-899ba89f2ec4" /> Navigating to the detail view of one of the entires, the page is titled "Transaction" but the primary content describes only the selected destination output, which seems to be conflating a transaction & an output. <img width="678" height="374" alt="Image" src="https://git.fish.foo/attachments/96dbff02-8a2d-4131-8d47-4f8b9d955a27" />
pseudoramdom commented 2026-08-07 19:35:35 +00:00 (Migrated from github.com)

@GBKS

@GBKS
murchandamus commented 2026-08-07 20:20:50 +00:00 (Migrated from github.com)

I was thinking more about that since yesterday. Perhaps just dropping the separating lines between items that belong to the same transaction would already group things in an intuitive manner.

I was thinking more about that since yesterday. Perhaps just dropping the separating lines between items that belong to the same transaction would already group things in an intuitive manner.
pseudoramdom commented 2026-08-07 21:25:33 +00:00 (Migrated from github.com)

Here's a UTXO consolidation transaction - The send and receives are 2 separate entries. These can also be unified -

Image
Here's a UTXO consolidation transaction - The send and receives are 2 separate entries. These can also be unified - <img width="539" height="112" alt="Image" src="https://git.fish.foo/attachments/a80562db-11af-42fb-aac8-f9d19d1b6cf9" />
GBKS commented 2026-08-10 12:15:01 +00:00 (Migrated from github.com)

Good topic. Just generally, this is a simple list overview where we necessarily make simplifications and abstractions.

Presenting the payments to Alice and Bob separately is simple and intuitive. I don't think it is misleading that the underlying transaction structure is not surfaced here.

But there are good reasons to have a more intelligent activity view that combines certain things, and your UTXO consolidation transactions captures that well.

I spent a lot of time on this with Arké, so I'll use that as an example. First, some screens:

Image

And some design decisions:

  • I distinguish between activity that remains within the wallet, like a consolidation transaction (or ark board/offboard in the case of Arké). Those are automatically labelled a "Move" and not "Send" or "Receive". And the amount moved is in the label, like "Moved 10,000 ₿". This allows for the number on the right to always show the change in wallet balance.
  • Unilateral exits (aka "Force moves") consist of a sequence of steps and transactions, and they are all bundled into a single item in the list (bark provides an exit movement with all the involved transaction IDs). Initially I had those all as separate entries and it was really confusing. Now there's one item, and tapping into the details first reveals the number of steps, and then with another tap you can dig into the full transaction list.
  • Often you are exiting multiple VTXOs in parallel and some of those exits may share some of the transactions. In those cases, I evenly divide the fees of the shared transaction between the respective entries. This is relevant to the consolidation transaction example.

It is a lot, but it does feel simple and intuitive in practical usage.

For this project, maybe it's worth mapping out what scenarios we have and thinking through the logic before deciding on visual treatments like tweaks to the divider line (which may be too subtle for people to pick up).

Good topic. Just generally, this is a simple list overview where we necessarily make simplifications and abstractions. Presenting the payments to Alice and Bob separately is simple and intuitive. I don't think it is misleading that the underlying transaction structure is not surfaced here. But there are good reasons to have a more intelligent activity view that combines certain things, and your UTXO consolidation transactions captures that well. I spent a lot of time on this with Arké, so I'll use that as an example. First, some screens: <img width="3698" height="1948" alt="Image" src="https://git.fish.foo/attachments/0404898e-9c3f-479d-b11f-be1186e578bf" /> And some design decisions: - I distinguish between activity that remains within the wallet, like a consolidation transaction (or ark board/offboard in the case of Arké). Those are automatically labelled a "Move" and not "Send" or "Receive". And the amount moved is in the label, like "Moved 10,000 ₿". This allows for the number on the right to always show the change in wallet balance. - Unilateral exits (aka "Force moves") consist of a sequence of steps and transactions, and they are all bundled into a single item in the list (bark provides an exit movement with all the involved transaction IDs). Initially I had those all as separate entries and it was really confusing. Now there's one item, and tapping into the details first reveals the number of steps, and then with another tap you can dig into the full transaction list. - Often you are exiting multiple VTXOs in parallel and some of those exits may share some of the transactions. In those cases, I evenly divide the fees of the shared transaction between the respective entries. This is relevant to the consolidation transaction example. It is a lot, but it does feel simple and intuitive in practical usage. For this project, maybe it's worth mapping out what scenarios we have and thinking through the logic before deciding on visual treatments like tweaks to the divider line (which may be too subtle for people to pick up).
murchandamus commented 2026-08-10 16:08:08 +00:00 (Migrated from github.com)

I had been thinking about this a bunch, and it feels to me that the activity list makes the unstated assumption that transactions and payments have a 1:1 relationship. However, it is quite common for power users to make multiple payments in a single transaction, so this assumption seems too encompassing to me.

I had been thinking about this a bunch, and it feels to me that the activity list makes the unstated assumption that transactions and payments have a 1:1 relationship. However, it is quite common for power users to make multiple payments in a single transaction, so this assumption seems too encompassing to me.
GBKS commented 2026-08-12 12:12:42 +00:00 (Migrated from github.com)

Yes, that's why we called it "Activity" and not "Transactions".

I'd like to mock up the activity list and detail screens for the various scenarios. The first step is to agree on what those scenarios are. What do you think of the following?

Sends

Image

Receives

Image

Other

Image

With a defined list of transactions/activities, and matching mock-ups, it will be easier to make design decisions. How does that sound? If it sounds good, what changes would you make to the scenarios above? If not, how would you like to go about mapping this out?

Yes, that's why we called it "Activity" and not "Transactions". I'd like to mock up the activity list and detail screens for the various scenarios. The first step is to agree on what those scenarios are. What do you think of the following? **Sends** <img width="1400" height="1650" alt="Image" src="https://git.fish.foo/attachments/c2ca80f8-55e4-45db-b231-9e128c3f40be" /> **Receives** <img width="1400" height="1530" alt="Image" src="https://git.fish.foo/attachments/7f0cbe1c-be1a-473a-bb6a-f1c9e9217dbf" /> **Other** <img width="1400" height="1302" alt="Image" src="https://git.fish.foo/attachments/637125c1-10e2-458c-8c3d-4b50b28b0309" /> With a defined list of transactions/activities, and matching mock-ups, it will be easier to make design decisions. How does that sound? If it sounds good, what changes would you make to the scenarios above? If not, how would you like to go about mapping this out?
murchandamus commented 2026-08-12 16:00:19 +00:00 (Migrated from github.com)

These look good to me, but I would posit two more scenarios: a fanout transaction which is a self-send in which multiple outputs go to the own wallet (e.g., used in enterprise UTXO management), and a multi-user transaction in which only some of the inputs are contributed by the own wallet (e.g., Payjoin, Coinjoin).

These look good to me, but I would posit two more scenarios: a fanout transaction which is a self-send in which multiple outputs go to the own wallet (e.g., used in enterprise UTXO management), and a multi-user transaction in which only some of the inputs are contributed by the own wallet (e.g., Payjoin, Coinjoin).
murchandamus commented 2026-08-12 16:03:34 +00:00 (Migrated from github.com)

The data output could be combined with most of the above, but usually such transactions also have a change output. Perhaps we should also consider P2A outputs, e.g., occurring when a lightning channel is closed toward a Bitcoin Core wallet.

The data output could be combined with most of the above, but usually such transactions also have a change output. Perhaps we should also consider P2A outputs, e.g., occurring when a lightning channel is closed toward a Bitcoin Core wallet.
GBKS commented 2026-08-18 11:28:03 +00:00 (Migrated from github.com)

Here's an update with those two additional transaction types. Some notes:

  • I named consolidations and fanout "Combine coins" and "Split coins" respectively for simplicity's sake.
  • I bet a bunch of details are wrong here. Please let me know if anything should be tweaked.

For sends, the number of counterparties might be the best way to split on-chain transactions into user actions (each counterparty is one action):

  1. No inputs yours? -> Receive
  2. Any outputs to others -> Send
  3. Otherwise it's an internal action

Could a Payjoin/Coinjoin be either send or receive based on amounts?

And what would a P2A output look like? I'd need some help with those more complex cases.

Image
Here's an update with those two additional transaction types. Some notes: - I named consolidations and fanout "Combine coins" and "Split coins" respectively for simplicity's sake. - I bet a bunch of details are wrong here. Please let me know if anything should be tweaked. For sends, the number of counterparties might be the best way to split on-chain transactions into user actions (each counterparty is one action): 1. No inputs yours? -> Receive 2. Any outputs to others -> Send 3. Otherwise it's an internal action Could a Payjoin/Coinjoin be either send or receive based on amounts? And what would a P2A output look like? I'd need some help with those more complex cases. <img width="4200" height="2166" alt="Image" src="https://git.fish.foo/attachments/5ba1c13d-1d18-48ec-8f81-37c018e9aba7" />
murchandamus commented 2026-08-18 18:00:11 +00:00 (Migrated from github.com)

I think “Multi-user send” is incomplete. For example by those criteria, we would recognize a Payjoin payment as a Multi-user send. We could potentially classify as a receive or a send depending on whether our wallet balance increases or decreases per the transaction, but if we for example combine a Payjoin receive with a payment to another user, that could still be somewhat incorrect (we got paid and sent, but our balance went down and it would get classified as a sent). So, maybe the simplest thing would be to classify transactions with inputs from multiple users as “multi-user transaction” without trying to guess whether it is a send or a receive.

I think “Multi-user send” is incomplete. For example by those criteria, we would recognize a Payjoin payment as a Multi-user send. We could potentially classify as a receive or a send depending on whether our wallet balance increases or decreases per the transaction, but if we for example combine a Payjoin receive with a payment to another user, that could still be somewhat incorrect (we got paid and sent, but our balance went down and it would get classified as a sent). So, maybe the simplest thing would be to classify transactions with inputs from multiple users as “multi-user transaction” without trying to guess whether it is a send or a receive.
GBKS commented 2026-08-21 11:49:17 +00:00 (Migrated from github.com)

I like that idea. Just thinking about how to express this in the activity list. Some ideas:

Image
I like that idea. Just thinking about how to express this in the activity list. Some ideas: <img width="1200" height="410" alt="Image" src="https://git.fish.foo/attachments/f466510c-fe51-40ec-bdf3-aa247b8c3d3a" />
Sign in to join this conversation.
No description provided.