Get Balance

Get the wallet object which includes current balance

get
GetWallet

https://lnpay.co/v1/wallet/:wallet_access_key
Returns info about the wallet, including balance
Request
Response
Request
Path Parameters
wallet_access_key
required
string
Wallet Access Key (WAK)
Response
200: OK
{
"id": "wal_czDztN5eJ4r5sJ",
"created_at": 1582461859,
"updated_at": 1582461859,
"user_label": "My Postman Collection Wallet",
"balance": 0,
"statusType": {
"type": "wallet",
"name": "active",
"display_name": "Active"
}
}
curl
JavaScript
Python
curl
$ curl -u pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp: \
https://lnpay.co/v1/wallet/wakr_wIdkxqZqkRJd6MhWlsoH1yi
# We are using the "read" access key in this instance as denoted by the "wr_"
JavaScript
LNPay.Initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp');
let myWallet = new LNPayWallet('wr_3YgsKHplFSyhzBKNVr8tohO');
myWallet.getInfo(function(result) {
console.log('Balance:' + result.balance);
}
);
Python
lnpay_py.initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp')
my_wallet = LNPayWallet('wr_3YgsKHplFSyhzBKNVr8tohO')
info = my_wallet.get_info()
print(info)