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

{
   "wtx":{
      "id":"wtx_YQs4Uu0JPBI8jxQhdWUstbKs",
      "wal":{
         "id":"wal_q2hBv1c3RbR2ql",
         "balance":0,
         "created_at":1642107738,
         "statusType":{
            "name":"active",
            "type":"wallet",
            "display_name":"Active"
         },
         "updated_at":1642107996,
         "user_label":"Tester",
         "walletType":{
            "name":"generic_wallet",
            "display_name":"Generic Wallet"
         },
         "balance_msat":null,
         "defaultLnurlpay":{
            "id":"lnurlp_QYmSeHiSev5PDqa2RY",
            "created_at":1642107738,
            "statusType":{
               "name":"lnurl_active",
               "type":"lnurl",
               "display_name":"LNURL Active"
            },
            "updated_at":1642107738,
            "user_label":"Base lnurl-pay link",
            "lnurl_decoded":"https://cloud.lnpay.co/v1/wallet/waklp_0C9ezQHHMQ0z77VU5dpIfB/lnurlp/lnurlp_QYmSeHiSev5PDqa2RY",
            "lnurl_encoded":"LNURL1DP68GURN8GHJ7CMVDA6KGTNVDECXZ7FWVDHJ7A339AMKZMRVV46Z7AMPDDK8QHESGVUK27J3FPYY65FS0GMNW4J4X4J8QJTXGGHKCMN4WFK8QTMVDE6HYMRSTAG4JM2NV4YXJ5M9WC64Q3R3VYE9YKGHJXE2D",
            "lnurlp_short_desc":"LNURL PAY (via LNPay.co)",
            "lnurlp_maxSendable_msat":100000000,
            "lnurlp_minSendable_msat":1000
         }
      },
      "lnTx":{
         "id":"lntx_xd102sPOytDpUr2WadQALB",
         "memo":"Test",
         "expiry":432000,
         "is_amp":null,
         "settled":1,
         "fee_msat":2,
         "created_at":1642107996,
         "expires_at":1642194396,
         "is_keysend":null,
         "ln_node_id":"lnod_2s4yfYA",
         "settled_at":1642107996,
         "dest_pubkey":"037cc5f9f1da20ac0d60e83989729a204a33cc2d8e80438969fadf35c1c5f1233b",
         "num_satoshis":10,
         "payment_addr":null,
         "custom_records":null,
         "r_hash_decoded":"0dd3ec96995c799c97dd32f0c2877f7600d299c50fd784909e0e7f833ead7779",
         "payment_request":"lnbc100n1ps7p9p2pp5phf7e95et3uee97axtcv9pmlwcqd9xw9pltcfyy7pelcx04dwausdq823jhxaqcqzpgxqyz5vqsp54we36e25q9da2sn4slvmynl3jmlufz3nlxn4r9lrqv9luwd87gps9qyyssq8pk9cm9hwa3sl3ll3nfq6cpayehft0xtlksryr3895yhpmavchx56v7gfh3kgr98xqee754lun5k9zpmu22p38xvf6x5yjvlcggzksgpwwnft4",
         "description_hash":null,
         "payment_preimage":"05e2e0e76b9184d413baa6f0b0611f2abcde0d29eb0c8c192c1b2b5d0fbcafd4"
      },
      "wtxType":{
         "name":"ln_withdrawal",
         "layer":"ln",
         "display_name":"LN Withdrawal"
      },
      "passThru":{
         "outgoingChannelId":"677787345915674625"
      },
      "created_at":1642107996,
      "user_label":"Test",
      "num_satoshis":-10
   }
}

Last updated