Skip to Content
ConceptsSubmissions vs Executions

Submissions vs Executions

Robin exposes two different trade concepts:

  • TradeSubmission: an app-level record of a trade attempt
  • TradeExecution: a confirmed on-chain trade fact

Submission

Submissions are useful for:

  • immediate UX after a trade attempt
  • idempotency and replay behavior
  • carrying transaction identifiers while confirmation is still resolving

Execution

Executions are useful for:

  • confirmed trade history
  • portfolio recomputation
  • stable public identifiers such as txHash:logIndex
Last updated on