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
| Field | Type | Required | Description |
|---|---|---|---|
authorization | array | Yes | Array of EIP-7702 authorization objects |
authorization[].chainId | number | Yes | Chain ID for the authorization |
authorization[].address | string | Yes | Address being authorized |
authorization[].nonce | number | Yes | Authorization nonce |
authorization[].r | string | Yes | ECDSA signature R value |
authorization[].s | string | Yes | ECDSA signature S value |
authorization[].yParity | number | Yes | ECDSA signature Y parity |
intentAuthorization.signature | string | Yes | Intent signature (becomes intent ID) |
intentAuthorization.chainAuthorizations | any[] | Yes | Array of authorized chain batches |
Response
Success Response (200)
Response Fields
| Field | Type | Description |
|---|---|---|
status | string | Submission status (always created on success) |
intentId | string | Intent identifier (same as intentAuthorization.signature) |
Error Responses
400 Bad Request
500 Internal Server Error
Example Request
Workflow
- Transaction Validation: Validates authorization array and intentAuthorization are provided and properly formatted
- Database Storage: Saves the intent and all chain authorizations to the database for reliable tracking
- Chain Broadcast: Broadcasts the transaction to the appropriate blockchain network
- Response: Returns transaction hash and intent ID for subsequent step execution
Next Steps
After successful submission:- Track Progress: Use the returned
intentIdto execute individual steps - Execute Steps: Call
POST /intent/{intentId}/execute/{stepId}for each step (0, 1, 2, …) - 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
