LNPay Docs
Search…
Retrieve Wallet
Get the wallet object which includes current balance. See Access Keys
get
https://api.lnpay.co/
v1/wallet/:wallet_key
GetWallet
See the Access Keys section on how to define wallet_key
cURL
Node.js
Python
JavaScript
1
curl -u sak_XXXXXXX: \
2
https://api.lnpay.co/v1/wallet/wal_XXXXXX
Copied!
1
const lnpay = LNPay({
2
secretKey: 'sak_XXXXX'
3
});
4
5
const balance = await lnpay.getBalance();
6
console.log(balance);
Copied!
1
lnpay_py.initialize('sak_XXXXXXX')
2
my_wallet = LNPayWallet('wr_XXXXXXX')
3
4
info = my_wallet.get_info()
5
print(info)
Copied!
1
LNPay.Initialize('pak_XXXXXXX');
2
3
let myWallet = new LNPayWallet('wakr_XXXXXX');
4
myWallet.getInfo(function(result) {
5
console.log('Balance:' + result.balance);
6
}
7
);
Copied!
Last modified 3mo ago
Copy link