v1

latestOpenAPI 3.1.02026-07-266133267.6 KB

post/v3/lightning_invoice_bolt11

Request body

amountinteger required

Amount in BTC. The precision is 8 decimal places

d_tag_memostring

This will be included in the d-tag. If both d_tag_memo and h_tag_memo are provided, only h_tag will be used

h_tag_memostring

SHA-256 of the d_tag_memo. If both d_tag_memo and h_tag_memo are provided, only h_tag_memo will be used

expiry_intervalinteger

The expiry of the invoice in seconds. Default value is 3600 (1 hour)

metadatastring json

Set of key-value pairs to attach to the lightning_invoice_bolt11 object

Response

statusstring

success or failure

messagestring

Message related to the action

datastring json

The lightning invoice bolt11 object