curl --request GET \
--url https://api.example.com/api/v1/lightning/receives/{identifier}{
"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 status of a specified Lightning receive, identified by its payment hash, invoice string, or preimage. The response tracks progress through timestamps: htlc_vtxos is populated once HTLCs are created by the Ark server, preimage_revealed_at records when the preimage was sent, and finished_at indicates the receive has settled or been canceled.
curl --request GET \
--url https://api.example.com/api/v1/lightning/receives/{identifier}{
"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"
}Payment hash, invoice string or preimage to search for
Returns the Lightning receive status
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?