Skip to content

Commit

Permalink
Add optional description to PostMintQuoteBolt11Request (#144)
Browse files Browse the repository at this point in the history
Co-authored-by: callebtc <[email protected]>
  • Loading branch information
minibits-cash and callebtc authored Sep 9, 2024
1 parent 69c8e77 commit 463cd54
Showing 1 changed file with 7 additions and 4 deletions.
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

0 comments on commit 463cd54

Please sign in to comment.