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
curl -u sak_XXXXXXX: \
https://api.lnpay.co/v1/wallet-transactions
const lnpay = LNPay({
secretKey: 'sak_XXXXX',
walletAccessKey: 'wal_XXXXX',
});
const transactions = await lnpay.getTransactions({
page: 1,
});
lnpay_py.initialize('sak_XXXXXXX')
from lnpay_py.wallet import LNPayWallet
my_wallet = LNPayWallet('waki_XXXXXX')
transactions = my_wallet.get_transactions()
print(transactions)
Copy link