⚙️Specifications Overview
Describes architecture of the spec
Last updated
Describes architecture of the spec
Last updated
This page describes the basic workflow of the current spec broken down into the five steps for different wallets trying to implement this spec.
Trigger SendPayment
method
The lightning web application requests for WebLN provider by triggering SendPayment
method.
Provider passed by the wallet to the lightning web application shall contain an extended definition of SendPayment
method
Structure and Pass Metadata
Using SendPayment
method, the lightning web application passes an invoice along with additional metadata. WebLN provider delivers such data to the wallets.
Before passing metadata to the wallet using the SendPayment
method, metadata shall present in a structured form using the data models provided in a comprehensive guide.
Validate Metadata Wallets validate received metadata against predefined data models/schemas.
Render Metadata in Confirmation Dialogue ✅ If metadata is passed and is valid, it is rendered in confirmation dialogue along with payment details. ❌ If metadata is passed and is not valid, even if the invoice is valid, there might be a possibility of fraud, and wallets don't allow it to proceed further.
Store, Interact and Do After Actions If metadata passed to the wallet is valid, also an invoice is paid - store, interact and do after actions with metadata.
Follow our comprehensive guide to know more about each step and its implementation details.