Update README.md

This commit is contained in:
supertestnet authored and GitHub committed 2024-08-06 19:10:00 -05:00
1 parent 41fce8e740
commit 490755a6e3
1 file changed
+9
+9
View File
@@ -30,6 +30,15 @@ var delay_tolerance = 3;
var invoice_info = await nwcjs.checkInvoice( nwc_info, invoice, delay_tolerance );
```
## Check your balance
If there is an error, consider increasing your delay tolerance from 3 seconds to 5 or so
```javascript
var delay_tolerance = 3;
var balance_info = await nwcjs.getBalance( nwc_info, delay_tolerance );
```
## Check a payment's status
This method will return false if a payment did not succeed yet. If the payment did succeed, it will return the invoice preimage.