gudnuf on Nostr: 1. Add a new active keyset with unit ‘usd’ 2. Convert amount in mint quote ...
1. Add a new active keyset with unit ‘usd’
2. Convert amount in mint quote request to sats based on current exchange rate, then create invoice for that sat amount.
3. Convert sat from invoice to usd in melt quote request and return usd amount needed to pay the invoice.
Happy to help if you want to get on a call
Published at
2024-05-15 03:51:17Event JSON
{
"id": "3f6cc9dc18f2aa5f27e541c89dc1588e6fcec4bd3ac6006053e597d6d18141f1",
"pubkey": "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345",
"created_at": 1715745077,
"kind": 1,
"tags": [
[
"e",
"a0054281b855efb2b0dcd1beb42681c166f70d2d573efc96a901b637ba8bccf0",
"wss://relay.nostr.bg/all",
"reply"
],
[
"p",
"ae1008d23930b776c18092f6eab41e4b09fcf3f03f3641b1b4e6ee3aa166d760"
],
[
"e",
"f1dbc3fae06ad24e27e148a60a6e3fda3118772fe0d45037be6292497c4ebbe7",
"",
"root"
]
],
"content": "1. Add a new active keyset with unit ‘usd’\n2. Convert amount in mint quote request to sats based on current exchange rate, then create invoice for that sat amount. \n3. Convert sat from invoice to usd in melt quote request and return usd amount needed to pay the invoice. \n\nHappy to help if you want to get on a call",
"sig": "2ce4742d96a7e3ad49a067627a2094e0f0e8d672d504865a6c35cc04af485ab56fbfaf3ab68eff2353187238459093088e0508cbb44a2464625f02a2cd0935a8"
}