Spark BTC
payLightningInvoice
Pay a Lightning Network invoice from a Spark wallet.
POST
Headers
string
required
ID of your Privy app.
string
Request authorization signature. If multiple signatures are required, they should be comma
separated.
string
Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the
request must be processed.
Path Parameters
string
required
ID of the wallet to get.
These wallet methods are modeled after the Spark Wallet
SDK. For more
information about this wallet method, check out the Spark Wallet
documentation.
Body
string
required
Available options:
payLightningInvoicestring
required
Available options:
MAINNET, REGTESTobject
required
Returns
enum<string>
required
Available options:
payLightningInvoiceobject
required
If
prefer_spark is false, a LightningSendRequest object with the following fields:If prefer_spark is true, the response will be a Transfer object with the following fields:
