Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NBX enhancements #431

Closed
wants to merge 16 commits into from
Closed

NBX enhancements #431

wants to merge 16 commits into from

Conversation

Kukks
Copy link
Contributor

@Kukks Kukks commented Oct 5, 2023

closes #429 #291

This PR makes use of the enhanced flexivility of the postgres indexer and exposes them over the current API.

Notably it:

  • has a new tracked source, Wallet, which can act as a "bag" for individual scripts, or as a parent to other wallets.
  • the generate wallet and track wallet now support specifying a parent wallet
  • there is an "associate scripts" endpoint which adds specific scripts/addresses to a tracked source to be watched.
  • there is an "import coins" endpoint which allows you to tell NBX that a wallet has existing coins that it has not managed to track (as they were possibly created before nbx started tracking the wallet). This endpoint verifies the coins are real by calling gettxout on bitcoin core. If you have a local state of coins, this is a much lighter and scalable version of resotring a wallet's utxos on nbx than the scanutxoset option (which can only run exclusively and takes a lot of resources). This can be improved by also adding a utxoproof that it was mined in a specific block.

@NicolasDorier
Copy link
Member

NicolasDorier commented Oct 10, 2023

Tests seems to fail.

Kukks and others added 6 commits November 27, 2023 08:53
This PR makes use of the enhanced flexivility of the postgres indexer and exposes them over the current API.

Notably it:
* has a new tracked source, Wallet, which can act as a "bag" for individual scripts, or as a parent to other wallets.
* the generate wallet and track wallet now support specifying a parent wallet
* there is an "associate scripts" endpoint which adds specific scripts/addresses to a tracked source to be watched.
* there is an "import coins" endpoint which allows you to tell NBX that a wallet has existing coins that it has not managed to track (as they were possibly created before nbx started tracking the wallet). This endpoint verifies the coins are real by calling gettxout on bitcoin core. If you have a local state of coins, this is a much lighter and scalable version of resotring a wallet's utxos on nbx than the scanutxoset option (which can only run exclusively and takes a lot of resources). This can be improved by also adding a utxoproof that it was mined in a specific block.
@NicolasDorier
Copy link
Member

supersede by #450

There isn't any change, it's just a rebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Import UTXOs endpoint
2 participants