mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
Return the whole currency display info when needed
This commit is contained in:
parent
93c8dc9094
commit
418de94e60
49
47.md
49
47.md
|
@ -506,8 +506,18 @@ Response:
|
||||||
{
|
{
|
||||||
"result_type": "fetch_quote",
|
"result_type": "fetch_quote",
|
||||||
"result": {
|
"result": {
|
||||||
"sending_currency_code": "string",
|
"sending_currency": {
|
||||||
"receiving_currency_code": "string",
|
"code": "string",
|
||||||
|
"name": "string",
|
||||||
|
"symbol": "string",
|
||||||
|
"decimals": "number",
|
||||||
|
},
|
||||||
|
"receiving_currency": {
|
||||||
|
"code": "string",
|
||||||
|
"name": "string",
|
||||||
|
"symbol": "string",
|
||||||
|
"decimals": "number",
|
||||||
|
},
|
||||||
"payment_hash": "string", // used to execute the quote
|
"payment_hash": "string", // used to execute the quote
|
||||||
"expires_at": "number",
|
"expires_at": "number",
|
||||||
"multiplier": "number", // receiving unit per sending unit
|
"multiplier": "number", // receiving unit per sending unit
|
||||||
|
@ -573,8 +583,18 @@ Response:
|
||||||
"result": {
|
"result": {
|
||||||
"preimage": "string",
|
"preimage": "string",
|
||||||
"quote": {
|
"quote": {
|
||||||
"sending_currency_code": "string",
|
"sending_currency": {
|
||||||
"receiving_currency_code": "string",
|
"code": "string",
|
||||||
|
"name": "string",
|
||||||
|
"symbol": "string",
|
||||||
|
"decimals": "number",
|
||||||
|
},
|
||||||
|
"receiving_currency": {
|
||||||
|
"code": "string",
|
||||||
|
"name": "string",
|
||||||
|
"symbol": "string",
|
||||||
|
"decimals": "number",
|
||||||
|
},
|
||||||
"payment_hash": "string",
|
"payment_hash": "string",
|
||||||
"multiplier": "number", // receiving unit per sending unit
|
"multiplier": "number", // receiving unit per sending unit
|
||||||
"fees": "number", // fees in the sending currency
|
"fees": "number", // fees in the sending currency
|
||||||
|
@ -604,7 +624,12 @@ Response:
|
||||||
"result_type": "get_balance",
|
"result_type": "get_balance",
|
||||||
"result": {
|
"result": {
|
||||||
"balance": "number", // user's balance in the smallest unit of the currency
|
"balance": "number", // user's balance in the smallest unit of the currency
|
||||||
"currency_code": "string"
|
"currency": {
|
||||||
|
"code": "string",
|
||||||
|
"name": "string",
|
||||||
|
"symbol": "string",
|
||||||
|
"decimals": "number",
|
||||||
|
}|undefined,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
@ -619,11 +644,21 @@ The invoice/payment objects returned by `lookup_invoice` and `list_transactions`
|
||||||
|
|
||||||
// Optional field:
|
// Optional field:
|
||||||
"fx": {
|
"fx": {
|
||||||
"receiving_currency_code": "string",
|
"receiving_currency": {
|
||||||
|
"code": "string",
|
||||||
|
"name": "string",
|
||||||
|
"symbol": "string",
|
||||||
|
"decimals": "number",
|
||||||
|
},
|
||||||
"total_receiving_amount": "number",
|
"total_receiving_amount": "number",
|
||||||
"multiplier": "number", // receiving unit per sending unit (SATs if incoming)
|
"multiplier": "number", // receiving unit per sending unit (SATs if incoming)
|
||||||
// Remaining fields only available for outgoing payments:
|
// Remaining fields only available for outgoing payments:
|
||||||
"sending_currency_code": "string",
|
"sending_currency": {
|
||||||
|
"code": "string",
|
||||||
|
"name": "string",
|
||||||
|
"symbol": "string",
|
||||||
|
"decimals": "number",
|
||||||
|
},
|
||||||
"fees": "number", // fees in the sending currency
|
"fees": "number", // fees in the sending currency
|
||||||
"total_sending_amount": "number",
|
"total_sending_amount": "number",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user