In preparation for BTC++ in Austin TX, May 2024, Nifty will be paying out the ROYGBIV team from last years hackathon.

ROYGBIV.guide/demo

Policy

./lightning-cli.sh prism-show ROYGBIV
{
   "prism_id": "ROYGBIV",
   "prism_members": [
      {
         "member_id": "6a7e685f-c879-41fc-9f13-fdeca45d261c",
         "label": "farscapian",
         "destination": "lno1pg0hxurvd968xgrxwfhk6grjdaukwcnfwchxwatfv3jj7ctzda6hgys2veshyumrv9cxjctwzcssyfyp3smz5mngsmk36gesglw5thtccv57r6eq4aw7nwx0d5nect0x",
         "split": 1,
         "fees_incurred_by": "remote",
         "payout_threshold": "0msat"
      },
      {
         "member_id": "867db3b7-5b24-498d-a90b-829e0791a067",
         "label": "gudnuf",
         "destination": "lno1pgqpvggz0qejzx7u9qzekv35jtew29zn2kdzlja0j37pdack6psw2cqj36eq",
         "split": 1,
         "fees_incurred_by": "remote",
         "payout_threshold": "0msat"
      },
      {
         "member_id": "9b656102-6219-4304-b96e-4643cbf17aa1",
         "label": "JohnGribbin",
         "destination": "0270e5b8b68e97f1669d571a0000bf430101bfe69286775b002d5ebb0736e508d9",
         "split": 1,
         "fees_incurred_by": "remote",
         "payout_threshold": "0msat"
      },
      {
         "member_id": "3f1bf757-ab45-40c5-bec2-bdd68b15716f",
         "label": "AaronBarnard",
         "destination": "lno1pgqpvggrrge4v6s33t986uwrwwr0efysqnpy0qg0cjsaclqgct4es2eu2g2s",
         "split": 1,
         "fees_incurred_by": "remote",
         "payout_threshold": "0msat"
      },
      {
         "member_id": "ca16c873-ebe0-41dc-860d-828614cd7b5d",
         "label": "D++",
         "destination": "0391aeb8d6d54df19b56c3eec85ea5ab8aa04e6d5865af1b34fd26106ca75bf081",
         "split": 1,
         "fees_incurred_by": "remote",
         "payout_threshold": "0msat"
      },
      {
         "member_id": "71fe4f1b-927f-4e8f-bfd0-655fd40bdf93",
         "label": "NickShoup",
         "destination": "lno1pgrhymmeva3xjaskyypw5ggdmg2dtp5tajr5m0wthusgjsf8se979plxju535plcrzefgvq",
         "split": 1,
         "fees_incurred_by": "remote",
         "payout_threshold": "0msat"
      },
      {
         "member_id": "8d391ce0-479b-4a64-8996-e57e935bf69d",
         "label": "StephenDelorme",
         "destination": "lno1pgzhgetnwsc3vggrepepjcezctus3fyh27p0q9lsae5x5vee5re4n385g8hqgn969k3s",
         "split": 1,
         "fees_incurred_by": "remote",
         "payout_threshold": "0msat"
      }
   ]
}

Binding

./lightning-cli.sh prism-bindinglist
{
   "bolt12_prism_bindings": [
      {
         "offer_id": "e560b23f7879cf01398745d184a33443118d9f3b3f0cb04c923a9da47177ac58",
         "prism_id": "ROYGBIV",
         "member_outlays": {
            "6a7e685f-c879-41fc-9f13-fdeca45d261c": "0msat",
            "867db3b7-5b24-498d-a90b-829e0791a067": "0msat",
            "9b656102-6219-4304-b96e-4643cbf17aa1": "0msat",
            "3f1bf757-ab45-40c5-bec2-bdd68b15716f": "0msat",
            "ca16c873-ebe0-41dc-860d-828614cd7b5d": "0msat",
            "71fe4f1b-927f-4e8f-bfd0-655fd40bdf93": "0msat",
            "8d391ce0-479b-4a64-8996-e57e935bf69d": "0msat"
         }
      }
   ]
}

BOLT12 Prism Offer

./lightning-cli.sh listoffers

Pay to our BOLT12 Prism Offer

CLN output

### UPDATE member outlays

21:36:28.084Z INFO    Updating member 6a7e685f-c879-41fc-9f13-fdeca45d261c outlay to 14285msat
21:36:28.085Z INFO    Updating member 867db3b7-5b24-498d-a90b-829e0791a067 outlay to 14285msat
21:36:28.085Z INFO    Updating member 9b656102-6219-4304-b96e-4643cbf17aa1 outlay to 14285msat
21:36:28.085Z INFO    Updating member 3f1bf757-ab45-40c5-bec2-bdd68b15716f outlay to 14285msat
21:36:28.085Z INFO    Updating member ca16c873-ebe0-41dc-860d-828614cd7b5d outlay to 14285msat
21:36:28.085Z INFO    Updating member 71fe4f1b-927f-4e8f-bfd0-655fd40bdf93 outlay to 14285msat
21:36:28.085Z INFO    Updating member 8d391ce0-479b-4a64-8996-e57e935bf69d outlay to 14285msat

now pay out the prism members; set payout amount to member outlay



21:36:28.093Z INFO    In Prism.pay, and a binding was provided. Setting member_msat to the member's outlay: 14285msat
21:36:30.447Z INFO    bolt12_payment:  {'destination': '0224818c362a6e6886ed1d233047dd45dd78c329e1eb20af5de9b8cf6d279c2de6', 'payment_hash': 'e75b856c6f0c90126af41f00249c9af73ae843420801fff5ebd69e08e3b6abc6', 'created_at': 1714167388.5923252, 'parts': 1, 'amount_msat': 14285, 'amount_sent_msat': 14285, 'payment_preimage': '6fc4c1adf224a34972c4753c971de4435c2546ef639726f15d461a048fc3014c', 'status': 'complete'}
21:36:30.447Z INFO    In Prism.pay, and a binding was provided. Setting member_msat to the member's outlay: 14285msat
21:37:02.327Z INFO    bolt12_payment:  {'destination': '027833211bdc28059b323492f2e51453559a2fcbaf947c16f716d060e560128eb2', 'payment_hash': '4c43a69a36989eed8c41b7709f0f4b1857be2aef8c8d3581548d96e9dea9d8fc', 'created_at': 1714167395.5625892, 'parts': 1, 'amount_msat': 14285, 'amount_sent_msat': 14285, 'payment_preimage': '9f091046e5a7e28a5945df942a9e158df5bfcd8e54f3e3302703fa456bdfd532', 'status': 'complete'}
21:37:02.327Z INFO    In Prism.pay, and a binding was provided. Setting member_msat to the member's outlay: 14285msat
21:37:02.488Z UNUSUAL Prism member keysend payment did not complete:  RPC call failed: method: keysend, payload: {'destination': '0270e5b8b68e97f1669d571a0000bf430101bfe69286775b002d5ebb0736e508d9', 'amount_msat': 14285msat}, error: {'code': 210, 'message': 'Ran out of routes to try after 1 attempt: see `paystatus`', 'attempts': [{'status': 'failed', 'failreason': 'No path found', 'partid': 0, 'amount_msat': 14285}]}
21:37:02.488Z INFO    In Prism.pay, and a binding was provided. Setting member_msat to the member's outlay: 14285msat
21:37:05.916Z INFO    bolt12_payment:  {'destination': '031a33566a118aca7d71c37386fca49004c247810fc4a1dc7c08c2eb982b3c5215', 'payment_hash': 'cdf89b54b89e849d749bb8c4385696d9f7c91b89b0b128d138594edeed8ca042', 'created_at': 1714167422.9710076, 'parts': 1, 'amount_msat': 14285, 'amount_sent_msat': 14285, 'payment_preimage': 'f25a7f901b4d8067d952ed6401f4fdb1d8cdeafe023494a199486b4c72050237', 'status': 'complete'}
21:37:05.916Z INFO    In Prism.pay, and a binding was provided. Setting member_msat to the member's outlay: 14285msat
21:37:08.931Z INFO    keysend_payment:  {'destination': '0391aeb8d6d54df19b56c3eec85ea5ab8aa04e6d5865af1b34fd26106ca75bf081', 'payment_hash': 'bea0f102dc42526929a2f7d87be0fc3924b7b07f2bdb74d50265618d15445b61', 'created_at': 1714167425.9402113, 'parts': 1, 'amount_msat': 14285, 'amount_sent_msat': 14285, 'payment_preimage': '13fa69f35dcf4ec795ac0fb18bc147409642644a95440f4ae2ff1b12217599a1', 'status': 'complete'}
21:37:08.931Z INFO    In Prism.pay, and a binding was provided. Setting member_msat to the member's outlay: 14285msat
21:37:14.362Z INFO    bolt12_payment:  {'destination': '02ea210dda14d5868bec874dbdcbbf20894127864be287e697291a07f818b29430', 'payment_hash': 'c669a2a6805fe39f8fecaa0b4f713ed30784dd5c409938dd5beea6783ed41025', 'created_at': 1714167430.7678366, 'parts': 1, 'amount_msat': 14285, 'amount_sent_msat': 14285, 'payment_preimage': 'fa98904a16f75bbcc41b66f1419dc47dbbece2769570484eb593ae9691f82f6c', 'status': 'complete'}
21:37:14.363Z INFO    In Prism.pay, and a binding was provided. Setting member_msat to the member's outlay: 14285msat
21:37:25.364Z UNUSUAL Prism member bolt12 payment did not complete.:  RPC call failed: method: fetchinvoice, payload: {'offer': 'lno1pgzhgetnwsc3vggrepepjcezctus3fyh27p0q9lsae5x5vee5re4n385g8hqgn969k3s', 'amount_msat': 14285msat}, error: {'code': 1003, 'message': 'Failed: could not route, could not connect'}
21:37:25.364Z UNUSUAL No payment_result for member 9b656102-6219-4304-b96e-4643cbf17aa1. This could indicate a failed payment.
21:37:25.364Z UNUSUAL No payment_result for member 8d391ce0-479b-4a64-8996-e57e935bf69d. This could indicate a failed payment.

### Payments have been made (or failed); update outlays

21:37:25.364Z INFO    New outlay values after decrementing: {'6a7e685f-c879-41fc-9f13-fdeca45d261c': 0msat, '867db3b7-5b24-498d-a90b-829e0791a067': 0msat, '9b656102-6219-4304-b96e-4643cbf17aa1': 14285msat, '3f1bf757-ab45-40c5-bec2-bdd68b15716f': 0msat, 'ca16c873-ebe0-41dc-860d-828614cd7b5d': 0msat, '71fe4f1b-927f-4e8f-bfd0-655fd40bdf93': 0msat, '8d391ce0-479b-4a64-8996-e57e935bf69d': 14285msat}