From 490755a6e358fb8cd54b113a5c4b19f2bae003a5 Mon Sep 17 00:00:00 2001 From: supertestnet <58400631+supertestnet@users.noreply.github.com> Date: Tue, 6 Aug 2024 19:10:00 -0500 Subject: [PATCH] Update README.md --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 3eb9a85..2ccc6a0 100644 --- a/README.md +++ b/README.md @@ -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.