Get Transactions

Get a list of wallet transactions that have been SETTLED. This includes only transactions that have an impact on wallet balance. These DO NOT include unsettled/unpaid invoices.

get
GetWalletTransactions

https://lnpay.co/v1/wallet/:wallet_access_key/transactions
Request
Response
Request
Path Parameters
wallet_access_key
required
string
Wallet Access Key (WAK)
Response
200: OK
Array of transactions successfully retrieved, sorted by time created descending
[
{
"id": "wtx_OXWNFNYYY0NsGLwLx7AtcPM",
"created_at": 1580475159,
"wallet_id": "w_ALMWRQrSoSf4Qh",
"num_satoshis": 158,
"user_label": "asdf",
"lnTx": {
"id": "lntx_hlLn7xArPmew8KKSjqJqy6Vo",
"created_at": 1580129586,
"updated_at": 1580129586,
"dest_pubkey": "033868c219bdb51a33560d854d500fe7d3898a1ad9e05dd89d0007e11313588500",
"payment_request": "",
"r_hash_decoded": "7e13af679b551d8b0b804c3f0c74b43352c2d4c332ead6d693a8ea0aa6b6beec",
"memo": "",
"description_hash": "",
"num_satoshis": 2,
"expiry": 0,
"expires_at": null,
"payment_preimage": "323550597244415037724d6a436765567a72735875667438626e66754d385547",
"settled": 1,
"settled_at": 1580129586
},
"wtxType": {
"id": 30,
"layer": "ln",
"name": "ln_transfer_in",
"display_name": "Transfer In"
}
}
]

the lntx field will be null if the transaction is a transfer

curl
JavaScript
Python
curl
$ curl -u pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp: \
https://lnpay.co/v1/wallet/wr_3YgsKHplFSyhzBKNVr8tohO/transactions
JavaScript
LNPay.Initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp');
let myWallet = new LNPayWallet(walletAccessKey);
let queryParams = {};
myWallet.getTransactions(queryParams,
function(result) {
console.log(result);
}
);
Python
lnpay_py.initialize('pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp')
from lnpay_py.wallet import LNPayWallet
my_wallet = LNPayWallet('wi_skllxCQI7yurKi0NCCTc0wwO')
transactions = my_wallet.get_transactions()
print(transactions)