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

bitmaskd RGB20 Swaps Backend #405

Open
cryptoquick opened this issue Oct 27, 2023 · 1 comment
Open

bitmaskd RGB20 Swaps Backend #405

cryptoquick opened this issue Oct 27, 2023 · 1 comment
Assignees
Milestone

Comments

@cryptoquick
Copy link
Member

  1. Server operator deploys a docker container that's configured with their mnemonic seed, a contract genesis, and a fixed price in either BTC or USD.
  2. bitmaskd has a simple HTML webpage that displays a form with an input for an RGB invoice and a way to copy the contract genesis.
  3. User submits their invoice, which can either specify the token, or be a wildcard invoice.
  4. They get redirected to a page with an address to send Bitcoin to.
  5. We add that to our mempool monitor and create a websocket to the frontend to show when we get payment.
  6. Once a payment is initiated, we create a swap transaction that spends the payment using fees from the payment, and then immediately provide the txid. If their tx gets mined, their swap tx gets mined, too.
@lastdof
Copy link

lastdof commented Oct 29, 2023

I need that so much for PePe for the community . That will make me win so much hours of manual transfert of assets ( with errors , certainly) .
I'm very happy to see that kind of service on bitmaskd..
Maybe there's other services as well ...

@cryptoquick cryptoquick self-assigned this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants