curl --request GET \
--url https://api.example.com/api/v1/lightning/receives[
{
"amount_sat": 1,
"htlc_vtxos": [
{
"amount_sat": 1,
"chain_anchor": "<string>",
"exit_delta": 1,
"exit_depth": 1,
"expiry_height": 1,
"id": "<string>",
"policy_type": "<string>",
"server_pubkey": "<string>",
"user_pubkey": "<string>",
"state": {
"type": "spendable"
}
}
],
"invoice": "<string>",
"payment_hash": "<string>",
"payment_preimage": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"preimage_revealed_at": "2023-11-07T05:31:56Z"
}
]Returns the statuses of all pending Lightning receives, ordered from oldest to newest. A receive is pending until its finished_at timestamp is set, indicating it has settled or been canceled.
curl --request GET \
--url https://api.example.com/api/v1/lightning/receives[
{
"amount_sat": 1,
"htlc_vtxos": [
{
"amount_sat": 1,
"chain_anchor": "<string>",
"exit_delta": 1,
"exit_depth": 1,
"expiry_height": 1,
"id": "<string>",
"policy_type": "<string>",
"server_pubkey": "<string>",
"user_pubkey": "<string>",
"state": {
"type": "spendable"
}
}
],
"invoice": "<string>",
"payment_hash": "<string>",
"payment_preimage": "<string>",
"finished_at": "2023-11-07T05:31:56Z",
"preimage_revealed_at": "2023-11-07T05:31:56Z"
}
]Returns all pending receive statuses
The amount of the lightning receive
x >= 0The HTLC VTXOs granted by the server for the lightning receive
Empty if the lightning HTLC has not yet been received by the server.
Show child attributes
The invoice string
The payment hash linked to the lightning receive info
The payment preimage linked to the lightning receive info
The timestamp at which the lightning receive was finished
The timestamp at which the preimage was revealed
Was this page helpful?