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

feat: add electrs method to fetch utxos #77

Merged
merged 1 commit into from
Nov 1, 2023
Merged

Conversation

gregdhill
Copy link
Contributor

Required for building apps with browser-based wallets that only support signing (i.e. the MetaMask snap). We need to do the following things to be able to send Bitcoin:

  1. Get addresses from wallet
  2. List UTXOs available to spend using Electrs - this is what this PR adds
  3. Fund transaction (provide those inputs and specify outputs)
  4. Sign transaction with wallet and send using Electrs

I would also recommend using a coin selection library such as coinselect.

Copy link

vercel bot commented Nov 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
bob ✅ Ready (Inspect) Visit Preview Nov 1, 2023 7:29am
bob-example-account-abstraction ❌ Failed (Inspect) Nov 1, 2023 7:29am

@gregdhill gregdhill merged commit b0379a3 into master Nov 1, 2023
2 checks passed
@gregdhill gregdhill deleted the feat/electrs-utxo branch November 1, 2023 10:40
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.

1 participant