Portbale browser paywall to accept Liquid Bitcoin and Assets
- Install deps
yarn
- Serve and pass the Liquid address for the merchant
MERCHANT_ADDR="2dp9bnXs7Q9id5tfxFuZ7nLwdcGywFRoXms" yarn serve
- Pay with faucet
curl -X POST https://regtest.vulpem.com/liquid/api/faucet -H 'Content-Type: application/json' -d '{"address": "addressDispayed"}'
- Broadcast and inspect using returned hash
https://regtest.vulpem.com/liquid/api/tx/<txHash>
- Decode the OP_RETURN with
echo <scriptpubkey> | xxd -p -r