LNPay Docs
Search…
List All Transactions
Get a list of all transactions across all wallets
This endpoint is only available to the Secret Access Key (sak_)
get
https://api.lnpay.co/
v1/wallet-transactions
ListTransactions
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
Node.js
Python
1
curl -u sak_XXXXXXX: \
2
https://api.lnpay.co/v1/wallet-transactions
Copied!
1
const lnpay = LNPay({
2
secretKey: 'sak_XXXXX',
3
walletAccessKey: 'wal_XXXXX',
4
});
5
6
const transactions = await lnpay.getTransactions({
7
page: 1,
8
});
Copied!
1
lnpay_py.initialize('sak_XXXXXXX')
2
from lnpay_py.wallet import LNPayWallet
3
4
my_wallet = LNPayWallet('waki_XXXXXX')
5
transactions = my_wallet.get_transactions()
6
print(transactions)
Copied!
Last modified 2mo ago
Copy link