author: akumaigorodski
-
User scans a LNURL QR code or accesses an
lightning:LNURL..link withLN WALLETandLN WALLETdecodes LNURL. -
LN WALLETmakes a GET request toLN SERVICEusing the decoded LNURL. -
LN WALLETgets JSON response fromLN SERVICEof form:{ "uri": string, // Remote node address of form node_key@ip_address:port_number "k1": string, // a second-level hex encoded secret byte array to be used by wallet in `InvokeHostedChannel` message, may be random if Host has no use for it "alias": string, // Optional remote node alias "tag": "hostedChannelRequest" // type of LNURL }
or
{"status": "ERROR", "reason": "error details..."} -
LN WALLETopens a connection to the target node usingurifield. -
Once connected,
LN WALLETsends anInvokeHostedChannelmessage to the target node usingk1converted to byte array. -
The rest is handled by hosted channel protocol.