ergoplatform / ergoplatform/explorer-backend
Create method getApiV1BoxesUnspentByAddress with no-confirmed state
- Dominant language
- Scala
- Stars
- 23
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
Current explorer doesn't have method to prevent double spent attempt.
> Use case from spectrum user:
> "I had to wait until the transactions were confirmed before I could make the next swap. before that, the next swap was using the same boxes from my wallet that were already spent in mempool. hence "double spent attempt" error when trying to submit."
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the existing v1 boxes-by-address API and its tests, since no file or test is named in the issue. Verify the behavior against the stated mempool double-spend scenario; done means the new getApiV1BoxesUnspentByAddress method exposes the requested no-confirmed state so a subsequent swap does not select already-spent boxes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- scala
- Domain
- api, backend-api-design, blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100