-
Notifications
You must be signed in to change notification settings - Fork 22
bitmaskd RGB20 Swaps Backend #405
Copy link
Copy link
Open
Description
cryptoquick
opened on Oct 27, 2023
Issue body actions
- 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.
- 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.
- User submits their invoice, which can either specify the token, or be a wildcard invoice.
- They get redirected to a page with an address to send Bitcoin to.
- We add that to our mempool monitor and create a websocket to the frontend to show when we get payment.
- 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.
Reactions are currently unavailable