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

Api endpoints for UTXOs differ between devnet and test/mainnet #92

Closed
radicleart opened this issue Oct 29, 2023 · 0 comments · Fixed by #93
Closed

Api endpoints for UTXOs differ between devnet and test/mainnet #92

radicleart opened this issue Oct 29, 2023 · 0 comments · Fixed by #93
Assignees
Labels
bug Something isn't working

Comments

@radicleart
Copy link
Collaborator

radicleart commented Oct 29, 2023

Linked to this issue stacks-network/sbtc#230

Mempool api on bitcoins regtest network does not support the /:address/utxo endpoint

The bridge api requires this endpoint to read utxo's to build PSBTs.

This means that to work on regtest the bridge api must either;

  1. connect to a full node indexer directly (electrs, electrum etc) running locally
  2. or build the UTXO set by first importing the address into Bitcoin core

Running the indexer locally has proven challenging. Electrs is included in the devenv local network for the sBTC project but this has proven unstable.

The Leather wallet also requires the /utxo endpoints and so the solution for the Bridge api needs to be consistent with that for the wallet.

Note: Leather looks for endpoints like /:address/utxo on port 3002 for sBTC local network or port 18443 for the devnet local network.

@radicleart radicleart self-assigned this Oct 29, 2023
@radicleart radicleart added the bug Something isn't working label Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant