Overview
Send an Idempotency-Key header on a write so a retry after a timeout attaches to the original transaction instead of moving value twice. Send Prefer: wait=N to wait for on-chain settlement inline instead of polling a status URL.
On-chain writes are asynchronous by default. DALP queues the instruction and returns 202 Accepted with a status URL, and an HTTP timeout does not cancel queued work. Money-moving v2 writes echo Idempotency-Key and are safe to replay. On any other route, inspect the original operation before retrying.
Submit a token mint with Idempotency-Key and a 30-second synchronous wait:
curl -X POST "$DALP_API_URL/api/v2/tokens/0x71C7656EC7ab88b098defB751B7401B5f6d8976F/mints" \
-H "X-Api-Key: $DALP_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 6f1c2a9e-4b7d-4e2a-9c3f-1a2b3c4d5e6f" \
-H "Prefer: wait=30" \
-d '{
"recipients": ["0x8ba1f109551bD432803012645Ac136ddd64DBA72"],
"amounts": ["100000000000000000000"]
}'When the mint settles within the wait, DALP returns 200 OK with the route's settled body and meta.transactionId. If the wait expires first, DALP returns 202 Accepted with the queue handle:
HTTP/1.1 202 Accepted
Content-Type: application/json
Location: /api/v2/transaction-requests/0198f1a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b
Idempotency-Key: 6f1c2a9e-4b7d-4e2a-9c3f-1a2b3c4d5e6f
Preference-Applied: wait=30
{
"transactionId": "0198f1a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b",
"status": "QUEUED",
"statusUrl": "/api/v2/transaction-requests/0198f1a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b"
}Poll statusUrl (also returned in Location) until the transaction request reaches a terminal state:
curl "$DALP_API_URL/api/v2/transaction-requests/0198f1a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b" \
-H "X-Api-Key: $DALP_API_KEY"{
"data": {
"family": "evm",
"transactionId": "0198f1a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b",
"kind": "token.mint",
"status": "COMPLETED",
"subStatus": null,
"transactionHash": "0x5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8",
"blockNumber": "21458901",
"errorMessage": null,
"createdAt": "2026-03-11T15:58:02.000Z",
"updatedAt": "2026-03-11T16:02:08.000Z"
},
"links": {
"self": "/api/v2/transaction-requests/0198f1a2-3c4d-7e8f-9a0b-1c2d3e4f5a6b"
}
}Idempotency-Key
Idempotency-Key identifies one client-side instruction. The queue attaches matching submissions to the same transaction request, but a route can run checks before work reaches the queue. Treat a route as replay-safe only when its contract documents replay safety and its response echoes the effective key.
Use a fresh key for each distinct instruction and retain that key across retries. DALP reads Idempotency-Key case-insensitively and strips one pair of surrounding double quotes. An empty value, bare or quoted, counts as no key. If you omit the header, DALP generates a key, but you have nothing to retry with if the response is lost.
The money-moving v2 writes echo the key and never move value twice on an unchanged replay:
- Token mints, burns, transfers, forced transfers, transfer acceptances, and approvals.
- Claims, redemptions, yield, interest, dividend, and maturity claims or top-ups, and fixed-yield schedule writes.
- XvP settlement writes, token-sale writes, airdrop writes, paymaster deposits, and bank-rail cash-out creates.
A write checks preconditions such as balance, headroom, or claimable amount before it reaches the queue. A replay sent after the original settled can therefore return that precondition refusal instead of the original result. A token-sale fund sent without an amount tops up only remaining capacity, so a replay after settlement mints nothing. Read the original operation's status before treating such a refusal as a failure.
Matching window and conflict responses
For 24 hours after the first request, the transaction queue binds Idempotency-Key to the calling user, wallet selection (accountWalletId, smartWalletAddress, forceEoa), call payload (operation, target contract, call data, and value, where omitted value equals 0), and whether Prefer: dalp- was sent. Changing only Prefer: wait keeps the same write identity.
Reusing a key for a different write returns 409 Conflict with the route's conflict code, such as TRANSACTION_ (DALP-14238):
HTTP/1.1 409 Conflict
Content-Type: application/json
{
"code": "TRANSACTION_IDEMPOTENCY_KEY_CONFLICT",
"status": 409,
"message": "This idempotency key already names a different write",
"data": {
"id": "DALP-14238",
"why": "The idempotency key already names a different write from this sender on this chain, or its 24-hour matching window has closed.",
"fix": "Submit this write with a new idempotency key; to retry the original write inside its 24-hour window, resend it unchanged.",
"retryable": false,
"category": "client"
}
}Two route groups report the same queue conflict with their own codes:
- Token and token-feature writes return
400 Bad RequestwithTRANSACTION_(QUEUE_ IDEMPOTENCY_ CONFLICT DALP-14061) anddata..refusal: "Queue Idempotency Conflict" - V2 compliance writes (installing, configuring, scoping, or removing compliance modules, holder locks, and compliance expressions, excluding system module creation) return
409 ConflictwithREQUEST_STATE_CONFLICT(DALP-14262).
Token and token-feature writes report a spent retry budget as TRANSACTION_. Other queued writes (compliance module changes, governance proposals, role changes, market listings, smart-wallet mutations, forced escrow transfers, and token-sale mints) return their route's own dependency-unavailable error with retryable: true. Handle both identically: back off briefly, then resend with a new key, because the original key replays the recorded failure.
After a timeout, inspect the original operation's status before sending another write. Replay with the original Idempotency-Key only when the route documents replay safety.
Concurrent requests and changed bodies
Concurrent requests with the same write identity on the same network under the same Idempotency-Key attach to one instruction. A retry can return an in-flight state without waiting for the original request to finish.
Key comparison checks the full call data, not only wallet selection. Reusing a key with a different recipient or amount fails with the route's conflict error (for example, 400 TRANSACTION_, DALP-14061 on a token mint).
One-time outcomes (bond maturity, full-balance redemption, holder yield claim, dividend reclaim, an XvP parked-leg claim or expired withdrawal, or a token-sale refund, withdrawal, or undeliverable release or payment) allow one running request at a time regardless of key. A second request under another key fails before submission with 400 Bad Request, TRANSACTION_ (DALP-14751), data., and data.transactionId naming the running request when available. Read that request and resend only if it failed. A retry under the running request's own key still attaches to it.
When an earlier queued write failed before anything was signed, a matching submission under the same key enqueues a fresh attempt. The failed attempt keeps its own transactionId and no longer matches that key.
Reconcile by the original transactionId and resulting chain transaction hash. Request logs, workflow attempts, and settlement records track different stages and do not have a one-to-one row count per instruction.
Prefer: choose sync or async
Transaction routes default to asynchronous 202 Accepted. Use Prefer to wait inline on routes that declare it in the API reference. Writes that do not declare Prefer finish before responding and ignore the header.
The wait stops a few seconds before the deployment's request deadline so DALP responds before an upstream gateway times out. A synchronous wait never changes the operation's outcome. DALP echoes honoured directives in Preference-Applied per RFC 7240 (wait=N after clamping, and respond-async when sent). Sending only dalp-no-funding-pause produces no Preference-Applied header.
Resource-specific 202 Accepted writes
Several domain writes return 202 Accepted with their own resource body instead of a bare queue handle. With Prefer: wait, each holds up to the wait and returns 200 OK if every step settles in time.
Correlating meta.transactionId and replays
A settled 200 OK response names the underlying transaction request in meta.transactionId whenever the response came from a queue result (even when meta.txHashes is empty). A retry sent with Prefer: wait after settlement returns 200 OK with that same transactionId.
A retry sent without Prefer: wait returns 202 Accepted with the same transactionId and statusUrl even after settlement. Read GET /api/ for the final outcome, and retry a failed request with POST /api/ (action: "retry").
Treat an absent meta.transactionId as no correlation ID rather than proof that no request exists. One transaction request can submit multiple chain transactions, so meta.txHashes length does not equal request count.
Terminal states and retrying a failed transaction
Both polling GET /api/ and synchronous waits end when a request reaches a terminal state.
Force-retry rules
An organisation owner or platform administrator can requeue a FAILED or DEAD_LETTER request back to QUEUED through POST /api/. If a requeued request stays unclaimed after dispatch failed, repeating force-retry resumes that attempt. Otherwise it starts a new attempt.
Force-retry refuses these cases, among others, with 409 Conflict:
TRANSACTION_(FORCE_ RETRY_ CALL_ MAY_ LAND DALP-200383): returned forDEAD_LETTERwithmaywhile the call or nonce slot remains unresolved. When the chain shows neither call nor nonce reservation, sendStill Land: true custodianto record your confirmation that the custodian stopped the call. DALP does not verify that statement, and an incorrect override can run the call twice. AStopped: true DEAD_LETTERwith the sub-statusMAY_BE_ON_CHAINis refused even withcustodian, because its call may already have run at a nonce DALP holds no record of. What an operator can do says how an operator closes it.Stopped: true TRANSACTION_(WORKFLOW_ OWNED DALP-14029): returned for requests owned by a multi-step workflow (such as token creation) or a step of a role set. For a role set, send a new role set once the earlier one has ended. For any other workflow, force-retry its failed executable transaction request instead.TRANSACTION_(STATE_ CONFLICT DALP-14236): returned for aFAILEDrequest whose idempotency key a workflow retired. Completing an offboard retires the key of a failed identity registry write once DALP can prove it never lands. Send a new write with a newIdempotency-Key.TRANSACTION_(STATE_ CONFLICT DALP-14236) is also returned for a retry that an offboard refuses. While a case iscompleting, DALP refuses to retry a write that concerns that person. It also refuses to retry an identity registry add or a claim for a person who is offboarded, and a claim whose holder no longer has the seat in the organisation that the claim needs. The request stays as it was. If the case is stillcompleting, retry after it finishes or returns tostarted.
Failure details and indexer timeouts
FAILED and DEAD_LETTER rows carry a plain-text errorMessage (such as "Execution reverted"). When the failure maps to a catalogue error, contractError carries the id, why, and fix fields from the error envelope.
When compliance rules refuse a queued mint or transfer before it is sent, contractError.args names the reason, with the missing verification topics or the blocking module when DALP can establish them. A call that waits with Prefer: wait reads the same names in its 422 error. DALP records them only when the sending wallet holds a role that may read compliance detail: system manager, identity manager or claim issuer, and for a mint also supply management. Otherwise the request carries the catalogue error without them.
A caller who can read a transaction request only because it acted on their wallet, without being an organisation owner or platform administrator, receives error, no custodyApproval or amount, and activeRequirement without shortfall or recommendedTotal. For a compliance refusal, that caller's contractError names no wallet, missing topic or module.
On 504 INDEXER_BARRIER_TIMEOUT (DALP-12074), the transaction succeeded on chain, but Ledger Data did not finish indexing its block before the deadline. Because retryable is false, automatic retry loops will not duplicate the write. Confirm data.transactionId, repeat only the read, and ask an operator to check indexer errors for data.chainId at or before data.blockNumber if lag persists.