LNPay Docs
Search…
⌃K

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
curl -u sak_XXXXXXX: \
https://api.lnpay.co/v1/wallet/wal_XXXXXX
const lnpay = LNPay({
secretKey: 'sak_XXXXX'
});
const balance = await lnpay.getBalance();
console.log(balance);
lnpay_py.initialize('sak_XXXXXXX')
my_wallet = LNPayWallet('wr_XXXXXXX')
info = my_wallet.get_info()
print(info)
LNPay.Initialize('pak_XXXXXXX');
let myWallet = new LNPayWallet('wakr_XXXXXX');
myWallet.getInfo(function(result) {
console.log('Balance:' + result.balance);
}
);