LNPay Docs
Search…
⌃K

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
curl -u sak_XXXXXXX: \
https://api.lnpay.co/v1/wallet/wal_XXXXXXX/transactions
LNPay.Initialize('pak_XXXXXXX');
let myWallet = new LNPayWallet('waka_XXXX');
let queryParams = {};
myWallet.getTransactions(queryParams,
function(result) {
console.log(result);
}
);