Transaction Lifecycle
Overview
Client arb-algo mx-relayer MultiversX
β β β β
β 1. GET /quote β β β
βββββββββββββββββΆβ β β
ββββββββββββββββββ β β
β txData, amountOutMin β β
β β β
β 2. subscribe tx-status/{hash} β β
ββββββββββββββββββββββββββββββββββββββΆβ β
β β β
β 3. relay action β β
ββββββββββββββββββββββββββββββββββββββΆβ β
β 4. validate + co-sign β
β β 5. P2P broadcast β
β βββββββββββββββββββββΆβ
β β 6. execute tx
β ββββββββββββββββββββββ
β 7. SaveBlock from notifier β
β β β
β 8. tx-status event β β
βββββββββββββββββββββββββββββββββββββββ βStep-by-Step Guide
Step 1: Get a swap quote
Error
Cause
Action
Step 2: Connect to the relayer WebSocket
Step 3: Subscribe to gas statistics
Step 4: Determine relayer address for the sender's shard
Step 5: Build and sign the transaction
Step 6: Subscribe to tx-status BEFORE sending
Step 7: Send the relay action
Error
Cause
Action
Step 8: Wait for on-chain confirmation
Complete Example
Edge Cases
tx-status TTL expiry
Cross-shard transactions
Smart contract revert
Related Pages
Last updated
Was this helpful?