Simple SPA that let's you sell channels and inbound liquidity from your lightning node.
Built for the Bitcoin++ ATX 2023 hackathon.
In loving memory of zero fee routing (RIP).
This project is meant to be forked and deployed with ease.
You can one-click deploy this project to vercel:
Make sure to configure your environment variables.
Configure your variables in .env.local
or config.ts
.
Check out the env.sample
file for an example of what to do:
## The full URI to connect to your lightning node.
LND_HOSTNAME=protocol://hostname:port
## The hex-encoded admin macaroon for your lightning node.
LND_MACAROON=hex_encoded_admin_macaroon
## A random 32-byte hex-encoded key (for encrypting session data).
SESSION_KEY=32_byte_hex_encoded_random_key
BASE_FEE=25000 ## The base fee (in sats) to charge for a channel.
RATE_FEE=1 ## The percentage fee (channel size * rate fee) to charge.
MIN_RESERVE=50000 ## The minimum reserve balance to keep on-chain.
MAX_CHANSIZE=1000000 ## The absolute max channel size allowed.
Start the production server:
npm run start
# or
yarn start
Run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
Feel free to submit an issue if you run into any bugs or have a question.
Anyone can contribute to this project!
LND REST API Documentation
https://lightning.engineering/api-docs/api/lnd/rest-endpoints