---
title: "Mint"
method: POST
path: "/mint"
tags: ["POST"]
---

# Mint

`POST /mint`

## Request

- The document declares no server URL.
- Auth: none declared

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.

## Query parameters

- `payment_hash` string

## Request body

- CoreBlindedMessage[]
  - `B_` string
  - `amount` integer

## Response `200`

OK

- CoreBlindedMessage[]
  - `B_` string
  - `amount` integer

## Other responses

- `500`: Internal Server Error

---

[API](https://skmtc.dev/cashubtc/apis/cashu-feni-golang-mint.md) - [All operations](https://skmtc.dev/cashubtc/apis/cashu-feni-golang-mint/llms.txt) - [OpenAPI document](https://skmtc.dev/cashubtc/apis/cashu-feni-golang-mint/revisions/00490dbf8171?raw)
