v1

latestOpenAPI 3.0.32026-07-24707482.9 KB
Withdrawals

Record the L1 prove transaction hash for a withdrawal

post/withdrawals/{id}/prove-tx

Path parameters

idstring required

Request body

proveTxHashstring required

Example request

{
  "proveTxHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}

Response

The updated withdrawal record.

idstring required
userIdstring required
toNetwork'sepolia' | 'amoy' | 'besu' required

Target L1 network for the withdrawal.

token'QNT' | 'uUSD' | 'uGBP' | 'uEUR' | 'uToken' required
amountstring required
fromAddressstring required
toAddressstring required
isNativeToErc20boolean required
l2TxHashstring
l2BlockNumberinteger
withdrawalHashstring
withdrawalTxobject
disputeGameIndexinteger
outputRootProofobject
withdrawalProofstring[]
proveTxHashstring
finalizeTxHashstring
status'initiated' | 'l2_confirmed' | 'awaiting_dispute_game' | 'provable' | 'proven' | 'awaiting_finalization' | 'finalizable' | 'finalized' | 'proof_invalidated' | 'failed' required

Withdrawal lifecycle state (L2 rollup to L1).

provableAtstring date-time
finalizableAtstring date-time
lastStatusCheckAtstring date-time
failureReasonstring
completedAtstring date-time
createdAtstring date-time required
updatedAtstring date-time required

Example response

{
  "fromAddress": "0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234",
  "toAddress": "0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234",
  "l2TxHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",
  "proveTxHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab",
  "finalizeTxHash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890ab"
}