Skip to main content

POST /transaction/submit

Submit a cross-chain transaction with EIP-7702 authorization and intent execution.

Endpoint

Description

This endpoint allows you to submit transactions that will be executed across multiple chains. The system validates the transaction, saves it to the database, and returns tracking information. Execution is performed asynchronously by a solver.

Request Body

Parameters

Response

Success Response (200)

Response Fields

Error Responses

400 Bad Request

The API validates that tokenTransfers match the calls in each chain batch. Each transfer must correspond to the expected call data.

500 Internal Server Error

Example Request

Workflow

  1. Transaction Validation: Validates authorization array and intentAuthorization are provided and properly formatted
  2. Database Storage: Saves the intent and all chain authorizations to the database for reliable tracking
  3. Chain Broadcast: Broadcasts the transaction to the appropriate blockchain network
  4. Response: Returns transaction hash and intent ID for subsequent step execution

Next Steps

After successful submission:
  1. Track Progress: Use the returned intentId to execute individual steps
  2. Execute Steps: Call POST /intent/{intentId}/execute/{stepId} for each step (0, 1, 2, …)
  3. Monitor Results: Each step execution returns detailed results and status

Example Workflow

Notes

  • Intent ID is derived from intentAuthorization.signature
  • Authorization array can contain multiple EIP-7702 authorizations for different chains/addresses
  • All data is persisted to database for reliability and recovery
  • Step execution is triggered separately via the intent execution endpoint
  • Failed submissions can be debugged using the transaction hash
  • The system supports resumable execution for complex multi-step intents