Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NUT-04: Add optional description for PostMintQuoteBolt11Request #144

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions 04.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ The wallet of `Alice` includes the following `PostMintQuoteBolt11Request` data i
```json
{
"amount": <int>,
"unit": <str_enum["sat"]>
"unit": <str_enum["sat"]>,
"description": <str|null>
}
```

with the requested `amount` and the `unit`.
with the requested `amount` and the `unit`. An optional `description` can be passed if the mint signals support for it in `MintMethodSetting`.

The mint `Bob` then responds with a `PostMintQuoteBolt11Response`:

Expand Down Expand Up @@ -206,7 +207,8 @@ The settings for this nut indicate the supported method-unit pairs for minting a
"method": <str>,
"unit": <str>,
"min_amount": <int|null>,
"max_amount": <int|null>
"max_amount": <int|null>,
"description": <bool|null>
}
```

Expand All @@ -219,7 +221,8 @@ Example `MintMethodSetting`:
"method": "bolt11",
"unit": "sat",
"min_amount": 0,
"max_amount": 10000
"max_amount": 10000,
"description": true
}
```

Expand Down