Endpoints
Refresh a transaction
Get a new transaction when the original expires before the user signs or submits it.
GET/cloak/v1/order/:trackingId/transaction
Examples in
Returns the same shape as order creation with a fresh blockhash. Works only while the order is PENDING; anything later returns 409 ORDER_NOT_REFRESHABLE.
Request
Request
curl -sS "https://api.veilo.network/cloak/v1/order/TRACKING_ID/transaction" \
-H "Authorization: Bearer $VEILO_KEY"Refreshing cannot double-spend
Refreshed transactions represent the same deposit. If the user submits two versions, only one can succeed.
When to refresh, and when to re-quote
Refresh while the order is still PENDING and the quote has not expired. It keeps the same trackingId, the same terms and the same revenue share. Re-quote only when the order itself has expired.
