Skip to content

bitmaskd RGB20 Swaps Backend #405

Description

@cryptoquick
  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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions