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
Wallet Pay Invoice
Wallet Receive
1
{
2
"wtx":{
3
"id":"wtx_YQs4Uu0JPBI8jxQhdWUstbKs",
4
"wal":{
5
"id":"wal_q2hBv1c3RbR2ql",
6
"balance":0,
7
"created_at":1642107738,
8
"statusType":{
9
"name":"active",
10
"type":"wallet",
11
"display_name":"Active"
12
},
13
"updated_at":1642107996,
14
"user_label":"Tester",
15
"walletType":{
16
"name":"generic_wallet",
17
"display_name":"Generic Wallet"
18
},
19
"balance_msat":null,
20
"defaultLnurlpay":{
21
"id":"lnurlp_QYmSeHiSev5PDqa2RY",
22
"created_at":1642107738,
23
"statusType":{
24
"name":"lnurl_active",
25
"type":"lnurl",
26
"display_name":"LNURL Active"
27
},
28
"updated_at":1642107738,
29
"user_label":"Base lnurl-pay link",
30
"lnurl_decoded":"https://cloud.lnpay.co/v1/wallet/waklp_0C9ezQHHMQ0z77VU5dpIfB/lnurlp/lnurlp_QYmSeHiSev5PDqa2RY",
31
"lnurl_encoded":"LNURL1DP68GURN8GHJ7CMVDA6KGTNVDECXZ7FWVDHJ7A339AMKZMRVV46Z7AMPDDK8QHESGVUK27J3FPYY65FS0GMNW4J4X4J8QJTXGGHKCMN4WFK8QTMVDE6HYMRSTAG4JM2NV4YXJ5M9WC64Q3R3VYE9YKGHJXE2D",
32
"lnurlp_short_desc":"LNURL PAY (via LNPay.co)",
33
"lnurlp_maxSendable_msat":100000000,
34
"lnurlp_minSendable_msat":1000
35
}
36
},
37
"lnTx":{
38
"id":"lntx_xd102sPOytDpUr2WadQALB",
39
"memo":"Test",
40
"expiry":432000,
41
"is_amp":null,
42
"settled":1,
43
"fee_msat":2,
44
"created_at":1642107996,
45
"expires_at":1642194396,
46
"is_keysend":null,
47
"ln_node_id":"lnod_2s4yfYA",
48
"settled_at":1642107996,
49
"dest_pubkey":"037cc5f9f1da20ac0d60e83989729a204a33cc2d8e80438969fadf35c1c5f1233b",
50
"num_satoshis":10,
51
"payment_addr":null,
52
"custom_records":null,
53
"r_hash_decoded":"0dd3ec96995c799c97dd32f0c2877f7600d299c50fd784909e0e7f833ead7779",
54
"payment_request":"lnbc100n1ps7p9p2pp5phf7e95et3uee97axtcv9pmlwcqd9xw9pltcfyy7pelcx04dwausdq823jhxaqcqzpgxqyz5vqsp54we36e25q9da2sn4slvmynl3jmlufz3nlxn4r9lrqv9luwd87gps9qyyssq8pk9cm9hwa3sl3ll3nfq6cpayehft0xtlksryr3895yhpmavchx56v7gfh3kgr98xqee754lun5k9zpmu22p38xvf6x5yjvlcggzksgpwwnft4",
55
"description_hash":null,
56
"payment_preimage":"05e2e0e76b9184d413baa6f0b0611f2abcde0d29eb0c8c192c1b2b5d0fbcafd4"
57
},
58
"wtxType":{
59
"name":"ln_withdrawal",
60
"layer":"ln",
61
"display_name":"LN Withdrawal"
62
},
63
"passThru":{
64
"outgoingChannelId":"677787345915674625"
65
},
66
"created_at":1642107996,
67
"user_label":"Test",
68
"num_satoshis":-10
69
}
70
}
Copied!
1
{
2
"wtx":{
3
"id":"wtx_vwEZVTkBzGdhDXExI8d3ofGn",
4
"wal":{
5
"id":"wal_q2hBv1c3RbR2ql",
6
"balance":10,
7
"created_at":1642107738,
8
"statusType":{
9
"name":"active",
10
"type":"wallet",
11
"display_name":"Active"
12
},
13
"updated_at":1642107857,
14
"user_label":"Tester",
15
"walletType":{
16
"name":"generic_wallet",
17
"display_name":"Generic Wallet"
18
},
19
"balance_msat":null,
20
"defaultLnurlpay":{
21
"id":"lnurlp_QYmSeHiSev5PDqa2RY",
22
"created_at":1642107738,
23
"statusType":{
24
"name":"lnurl_active",
25
"type":"lnurl",
26
"display_name":"LNURL Active"
27
},
28
"updated_at":1642107738,
29
"user_label":"Base lnurl-pay link",
30
"lnurl_decoded":"https://cloud.lnpay.co/v1/wallet/waklp_0C9ezQHHMQ0z77VU5dpIfB/lnurlp/lnurlp_QYmSeHiSev5PDqa2RY",
31
"lnurl_encoded":"LNURL1DP68GURN8GHJ7CMVDA6KGTNVDECXZ7FWVDHJ7A339AMKZMRVV46Z7AMPDDK8QHESGVUK27J3FPYY65FS0GMNW4J4X4J8QJTXGGHKCMN4WFK8QTMVDE6HYMRSTAG4JM2NV4YXJ5M9WC64Q3R3VYE9YKGHJXE2D",
32
"lnurlp_short_desc":"LNURL PAY (via LNPay.co)",
33
"lnurlp_maxSendable_msat":100000000,
34
"lnurlp_minSendable_msat":1000
35
}
36
},
37
"lnTx":{
38
"id":"lntx_TXRORc6kW2rBT0hqJlkoQw",
39
"memo":"",
40
"expiry":86400,
41
"is_amp":null,
42
"settled":1,
43
"fee_msat":0,
44
"created_at":1642107841,
45
"expires_at":1642194241,
46
"is_keysend":null,
47
"ln_node_id":"lnod_2s4yfYA",
48
"settled_at":1642107857,
49
"dest_pubkey":"033868c219bdb51a33560d854d500fe7d3898a1ad9e05dd89d0007e11313588500",
50
"num_satoshis":10,
51
"payment_addr":null,
52
"custom_records":null,
53
"r_hash_decoded":"8d8c540d053e5cabb014a48af8c145305ac06189b39acd9c07518b599505b358",
54
"payment_request":"lnbc100n1ps7py7ppp53kx9grg98ew2hvq55j903s29xpdvqcvfkwdvm8q82x94n9g9kdvqdqqcqzpgxqyz5vqsp5cn4uxne445v6udyu2v4ntqwccx4f0dusdq898c2alxqzgqq0thcq9qyyssqny3ck4je9fv4kgpjgesdjwvhhkklxw6ykjtc67zxjvcr9hw5vntpm37wpm36sqwsrf57ka5tm9up6hnjzrlkzr2887ylxxwdawl8c8sp5x06q5",
55
"description_hash":null,
56
"payment_preimage":"00f910ea5baf99ba919ebb5f37ce6e08f2b1951ad6b198356dcda1eae8f91c4f"
57
},
58
"wtxType":{
59
"name":"ln_deposit",
60
"layer":"ln",
61
"display_name":"LN Deposit"
62
},
63
"passThru":{
64
"htlc":{
65
"state":"SETTLED",
66
"chanId":"783597747941277697",
67
"amtMsat":"10000",
68
"htlcIndex":"16826",
69
"acceptTime":"1642107857",
70
"resolveTime":"1642107857",
71
"acceptHeight":718528,
72
"expiryHeight":718570,
73
"mppTotalAmtMsat":"10000"
74
},
75
"wallet_id":"wal_q2hBv1c3RbR2ql"
76
},
77
"created_at":1642107857,
78
"user_label":"",
79
"num_satoshis":10
80
}
81
}
Copied!
Copy link