LNPay Docs
Search…
Wallet Send / Receive
All WalletTransaction objects are prefixed with wtx_

The Wallet Transaction Object

Any Wallet interaction with the Lightning Network that results in a settled transaction creates a WalletTransaction object. Here are some examples of them below
Keysend Receive
Keysend Send
Wallet Pay Invoice
Wallet Receive
1
[
2
{
3
"id": "wtx_JReJMmtQCxsFx3JReJMmtQCxsFx3",
4
"created_at": 1625968441,
5
"num_satoshis": 18,
6
"user_label": "keysend: custom record [112111100] [wal_JReJMmtQCxsFx3]",
7
"wal": {
8
"id": "wal_JReJMmtQCxsFx3",
9
"created_at": 1623200380,
10
"updated_at": 1625968441,
11
"user_label": "PC20TestWallet",
12
"balance": 168,
13
"balance_msat": null,
14
"statusType": {
15
"type": "wallet",
16
"name": "active",
17
"display_name": "Active"
18
},
19
"walletType": {
20
"name": "generic_wallet",
21
"display_name": "Generic Wallet"
22
}
23
},
24
"wtxType": {
25
"layer": "ln",
26
"name": "ln_deposit",
27
"display_name": "LN Deposit"
28
},
29
"lnTx": {
30
"id": "lntx_JReJMmtQCxsFx3JReJMmtQCxsFx3",
31
"created_at": 1625968441,
32
"ln_node_id": "lnod_2s4yfYA",
33
"dest_pubkey": "033868c219bdb51a33560d854d500fe7d3898a1ad9e05dd89d0007e11313588500",
34
"payment_request": "keysend",
35
"r_hash_decoded": "785279554b7a2b72496c6d486a3937496f57322f685170682f6b4a384d676e46335649414b4435505859673d",
36
"memo": "keysend: custom record [112111100] [wal_JReJMmtQCxsFx3]",
37
"description_hash": null,
38
"num_satoshis": 18,
39
"fee_msat": 0,
40
"expiry": 432000,
41
"expires_at": null,
42
"payment_preimage": "871df9c3fc54102fb695ba2a4c7e6a3a97f3140f146b5de675178103c64cf9e0",
43
"settled": 1,
44
"settled_at": 1625968441,
45
"is_keysend": 1,
46
"custom_records": {
47
"7629169": {
48
"time": "00:35:57",
49
"action": "stream",
50
"feedID": "920666",
51
"episode": "Episode 45: Pressin' The Flesh and Kissin' Babies",
52
"podcast": "Podcasting 2.0"
53
},
54
"7629171": "LNPayTesting",
55
"112111100": "wal_JReJMmtQCxsFx3",
56
"5482373484": "68783335772f785545432b326c626f71544835714f70667a464138556131336d6452654241385a4d2b65413d"
57
}
58
},
59
"passThru": {
60
"wallet_id": "wal_JReJMmtQCxsFx3",
61
"custom_records": {
62
"7629169": {
63
"time": "00:35:57",
64
"action": "stream",
65
"feedID": "920666",
66
"episode": "Episode 45: Pressin' The Flesh and Kissin' Babies",
67
"podcast": "Podcasting 2.0"
68
},
69
"7629171": "LNPayTesting",
70
"112111100": "wal_JReJMmtQCxsFx3",
71
"5482373484": "68783335772f785545432b326c626f71544835714f70667a464138556131336d6452654241385a4d2b65413d"
72
}
73
}
74
}
75
]
Copied!
1
Copied!
1
Copied!
1
Copied!
Last modified 4mo ago
Copy link