Caution: This is a rough implementation and not ready for production use at all. There are likely still bugs hiding everywhere.
A prediction market server based on bitcoin lightning.
This server serves the API Interface for mercado-ui and other clients to use. It implements the concept described in the whitepaper. To send and receive bitcoin it connects to a lnbits instance which needs to be defined in the condif file. Scripts which I use for running a docker image of lnbits are in the lnbits folder. There is also a cli to talk to the server api.
$ nix run .# -- -c ./example.config.json
$ nix run .#cli -- --help
$ nix build
$ nix develop