Transactions
Queue recovery
Recover stuck queued transactions with the TypeScript SDK.
POST
/transactions/recoverUse blnk.Transactions.recoverQueue to retry queued transactions.
Call the method
const response = await blnk.Transactions.recoverQueue({
threshold: '5m',
});
| Field | Type | Description |
|---|---|---|
threshold | string | Minimum age of transactions to recover (for example 5m, 1h). Default 2m. Minimum 2 minutes. |
Check how many were recovered
Read response.data.recovered to see how many transactions were re-enqueued. Use Search or get by ID to verify individual transaction statuses afterward.
Response
{
"recovered": 3,
"threshold": "5m0s"
}
| Field | Type | Description |
|---|---|---|
recovered | number | Number of transactions re-enqueued for processing. |
threshold | string | Threshold duration that was used. |