DeFiCh / DeFiCh/ain

accounttoutxos should also be listed under `listtransactions` (Discussion)

Open
#1,658 2 comments 0 reactions 0 assignees View on GitHub
p2
Dominant language
C++
Stars
397
Forks
129
PR merge metrics
No merged PRs in 30d

Description

#### What would you like to be added:

`OP_DEFI_TX_ACCOUNT_TO_UTXOS` that generates UTXOs should also show up at `listtransactions` just like other UTXO transactions.

I would suggest `"category": "receive"` with a flag, perhaps `"accounttoutxos": true` that it's from account so it's backward-compatible.

#### Why is this needed:

This is so that accounttoutxos are treated the same way as most other UTXOs transactions.

This would allow sites and exchanges to support direct accounttoutxos transactions.

##### Why it shouldn't be done

Also adding a counter view here on why it probably shouldn't be done. If any treatments of UTXOs are non-standard, exchanges might be getting UTXOs that are not movable using conventional methods, thus affecting drop-in integration compatibility of DeFiChain with BItcoin. Exchanges should only be dealing with safe UTXOs, i.e. those that are arleady "minted" and moved using conventional methods.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the listtransactions RPC and the OP_DEFI_TX_ACCOUNT_TO_UTXOS transaction path. Review the proposed receive category and accounttoutxos flag alongside the backward-compatibility and exchange-safety concerns. Done means the behavior has a decided design, is covered by relevant tests, and account-to-UTXO transactions appear consistently without exposing unsafe UTXOs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, blockchain
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.