Skip to main content
Fulfills one or more Spark invoices by paying them.

Method Signature

Parameters

{ invoice: SparkAddressFormat; amount?: bigint; }[]
required
Array of invoices to fulfill:
  • invoice: The Spark invoice to pay (must use spark1... prefix; legacy sp1... invoices are not supported)
  • amount: Amount to pay (required for invoices without an encoded amount; if both are provided, the encoded amount takes precedence)

Returns

FulfillSparkInvoiceResponse
required
Response containing results for all invoice payment attempts

Example