Notify the gateway of a submitted deposit transaction.
The gateway decodes the credited account from the on-chain tx calldata
and starts tracking the deposit. Call this immediately after your
depositNative or depositToken tx is broadcast (it accepts pending
mempool txs). Returns 202 while the tx awaits confirmation.
Read the current escrow balance for an account.
Pure read — no chain calls. To force a reconciliation pass first, use syncEscrowBalance.
Force a reconciliation pass then return the updated balance.
Triggers the gateway's lazy-confirmation worker for the account — any submitted deposits that have reached the configured confirmation level are credited before the balance is returned. Prefer this over getEscrowBalance when you need a fresh view after a deposit.
Authorize a payment against the payer's escrow balance.
The caller must:
signTypedData using GENERIC_PAYMENT_TYPES and
the domain from genericPaymentDomain.The gateway verifies the signature, checks the soft-lock balance, and records the payment. Returns 402 if the payer has insufficient balance.
Submit or reconcile a signed withdrawal authorization.
The gateway decides which signers may authorize an account. For example, it may accept the account itself or the confirmed owner of a registered app account.
Retry a submitted result with the exact same parameters. Do not replace
withdrawNonce, deadline, or signature unless starting a new intent.
Read the authoritative next withdrawal nonce for an account.
The gateway is the authority on what nonce to use; use the value from
nextWithdrawNonce when signing a withdrawal authorization.
Do NOT generate or cache nonces client-side; concurrent callers cannot be
safely coordinated without durable shared state. Query this endpoint immediately
before signing/submitting to reduce staleness risk. However, stale_nonce errors
can still occur; if rejected, re-query and re-sign.
Minimal client for the gateway's escrow endpoints.
Construct with createEscrowGatewayClient.