๐Extending SendPayment Method
Extending sendPayment method to add optional metadata field
Last updated
Extending sendPayment method to add optional metadata field
Last updated
WebLN SendPayment
which takes paymentRequest
parameter holding the Bolt11 Invoice, we can extend this function to add an extra โoptionalโ parameter named metadata
which will store metadata as a string and is passed further to the Wallets.
Function Signature:
WebLN Provider attached by wallets before
WebLN Provider attached by wallets after implementation of this spec
Now the extended version of the SendPayment
method implemented by the wallet is sent to the WebLN-enabled client. Now clients can pass metadata along with Invoice using such function.
Example: