UniversalEscrow
DocumentationAPI reference
Escrows

Register funding transaction

Registers a transaction hash the buyer's wallet already broadcast.

POST

https://testnet.universal-escrow.xyz/v1/escrows/{escrowId}/funding-transactions

Returns 202, NOT 201 or 200 — the platform has accepted a claim for verification, not confirmed a payment. The escrow becomes FUNDED only once the indexer observes the funding event at the configured confirmation depth (poll GET /v1/escrows/{escrowId} or subscribe to the escrow.funded webhook). A verification failure against the chain is 422 transaction_verification_failed. Prerequisite: a funding-intent should normally have been requested first, though this route accepts any hash and verifies it independently. Supports Idempotency-Key.

Authorizations

Authorizationstringheaderrequired

Bearer authentication with your secret API key: Bearer esc_test_<prefix>_<secret>. The key needs the escrows:write scope.

How authentication works

Path Parameters

escrowIdstringrequired

Headers

Idempotency-Keystring

Optional, 8–255 characters. The same key with the same body replays the original response instead of acting twice; with a different body it is a conflict.

Body

application/json
transactionHashstringrequired

The 0x-prefixed 32-byte transaction hash the user's wallet broadcast. Untrusted input — verified against the chain on nine properties before any state changes; never taken on faith.

chainIdnumberrequired

Chain id the transaction was sent on; must match the escrow's own chain.

Response

202 · RegisteredFundingTransaction · application/json

Accepted for verification — not a confirmed payment.

idstringrequired

Public id.

organizationIdstringrequired
escrowIdstringrequired
chainIdnumberrequired
hashstringrequired
fromAddressstring | nullrequired
toAddressstring | nullrequired
purposeTransactionPurposerequired

One of APPROVAL, FUNDING, RELEASE, REFUND, DISPUTE_RESOLUTION.

statusBlockchainTransactionStatusrequired

One of REGISTERED, PENDING, CONFIRMED, FAILED, DROPPED, REPLACED, REORGED.

confirmationsnumberrequired
requiredConfirmationsnumberrequired
blockNumberstring | nullrequired

Block height as a decimal string.

blockHashstring | nullrequired
failureCodestring | nullrequired

Machine-readable reason for FAILED, DROPPED, REPLACED or REORGED.

failureReasonstring | nullrequired

What failed and where. Never payload content.

statusHistoryTransactionStatusHistory[]required

Every transition, oldest first.

replacedBystring | nullrequired

The hash that superseded this transaction.

createdAtstringrequired

RFC 3339 UTC timestamp.

updatedAtstringrequired

RFC 3339 UTC timestamp.

escrowStatusstringrequired

The escrow's status, unchanged by this call.