v1

latestSwagger 2.02026-07-177136.9 KB
POST

Mint

Requests the minting of tokens belonging to a paid payment request.

Parameters: pr: payment_request of the Lightning paid invoice.

Body (JSON): payloads: contains a list of blinded messages waiting to be signed.

NOTE:

  • This needs to be replaced by the preimage otherwise someone knowing the payment_request can request the tokens instead of the rightful owner.
  • The blinded message should ideally be provided to the server before payment in the GET /mint endpoint so that the server knows to sign only these tokens when the invoice is paid.
post/mint

Query parameters

payment_hashstring

payment hash for the mint

Request body

B_string
amountinteger

Response

OK

B_string
amountinteger