Description
Persist anchor-eligible events as PENDING and return the HTTP response immediately (no await tx.wait() in the handler) for createWatch, addEvent, uploadContractDocument. Actual submission moves to the async worker. Serialize submissions per signer to avoid nonce collisions.
Affected areas
backend/src/controllers/watch.controller.ts, backend/src/services/onchain.service.ts.
Dependencies / order
Depends on #6.
Acceptance criteria
Definition of done
Description
Persist anchor-eligible events as
PENDINGand return the HTTP response immediately (noawait tx.wait()in the handler) forcreateWatch,addEvent,uploadContractDocument. Actual submission moves to the async worker. Serialize submissions per signer to avoid nonce collisions.Affected areas
backend/src/controllers/watch.controller.ts,backend/src/services/onchain.service.ts.Dependencies / order
Depends on #6.
Acceptance criteria
PENDINGand picked up asynchronously.BLOCKCHAIN_ENABLED=falseunchanged (eventsNOT_REQUIRED).Definition of done
staging(nevermain).stagingpreview stack.