@@ -197,7 +197,7 @@ await fetchWithL402(
197
197
198
198
``` js
199
199
import { fetchWithL402 } from " @getalby/lightning-tools" ;
200
- import { webln } from " alby-js- sdk" ;
200
+ import { webln } from " @getalby/ sdk" ;
201
201
202
202
// use a NWC WebLN provide to do the payments
203
203
const nwc = new webln.NostrWebLNProvider ({
@@ -216,7 +216,7 @@ await fetchWithL402(
216
216
217
217
``` js
218
218
import { l402 } from " @getalby/lightning-tools" ;
219
- import { fiat } from " @getalby/lightning-tools"
219
+ import { fiat } from " @getalby/lightning-tools" ;
220
220
221
221
// do not store the tokens
222
222
await l402 .fetchWithL402 (
@@ -259,9 +259,13 @@ Like `getFiatValue` but returns a formatted string for a given locale using Java
259
259
#### Examples
260
260
261
261
``` js
262
- await fiat .getFiatValue ({satoshi: 2100 , currency: ' eur' });
263
- await fiat .getSatoshiValue ({amount: 100 , currency: ' eur' }); // for 1 EUR
264
- await fiat .getFormattedFiatValue ({satoshi: 2100 , currency: ' usd' , locale: ' en' })
262
+ await fiat .getFiatValue ({ satoshi: 2100 , currency: " eur" });
263
+ await fiat .getSatoshiValue ({ amount: 100 , currency: " eur" }); // for 1 EUR
264
+ await fiat .getFormattedFiatValue ({
265
+ satoshi: 2100 ,
266
+ currency: " usd" ,
267
+ locale: " en" ,
268
+ });
265
269
```
266
270
267
271
### 🤖 Lightning Address Proxy
0 commit comments