LNPay Docs
Search…
List Wallet Transactions
Get transactions for a particular wallet
get
https://api.lnpay.co/
v1/wallet/:wallet_key/transactions
ListWalletTransactions
the lntx field will be null if the transaction is a transfer
wtx['num_satoshis'] is directional so there will be a negative value in the event of a debit
lnTx['num_satoshis'] will always be a positive value
cURL
JavaScript
1
curl -u sak_XXXXXXX: \
2
https://api.lnpay.co/v1/wallet/wal_XXXXXXX/transactions
Copied!
1
LNPay.Initialize('pak_XXXXXXX');
2
3
let myWallet = new LNPayWallet('waka_XXXX');
4
let queryParams = {};
5
myWallet.getTransactions(queryParams,
6
function(result) {
7
console.log(result);
8
}
9
);
Copied!
Last modified 2mo ago
Copy link