Skip to main content

Endpoint

Description

This is the unified entry point for creating cross-chain intents. An action groups related intents together and provides a single tracking ID. Each intent within an action can have its own execution mode and chain batches.

Request Body

JSON requests encode token amounts and native call values as decimal strings. Do not serialize bigint directly or use floating-point token amounts. Chain-batch hashes, intent signatures, transfer metadata and calls must agree; use the SDK to build them. The signed nbf and exp values are Unix seconds. The supported intent signature type is ecdsa.

Submission identity and continuation

  • Supply an idempotencyKey matching 0x followed by 64 lowercase hex characters when using recoverable submission. Keep the same key and payload for the same operation. A conflicting reuse is rejected.
  • After a lost response, query GET /actions/by-submission/:user/:idempotencyKey before considering another submission. A missing result does not prove an earlier request cannot still be in flight.
  • autoContinue: true requires that key, one fully signed 7702 intent, valid signed timing and available backend continuation. Check GET /actions/capabilities; the returned autoContinue flag confirms admission. A worker cannot supply a fresh user signature.
  • The optional externalExecution field belongs to the SDK-managed routed external-wallet handoff. Use the controlled SDK action rather than assembling a second host-side funding or recovery path.

Execution Modes

non-7702:presign mode is not yet implemented. Only 7702 and non-7702:on-demand modes are currently functional.
EIP-7702 mode uses delegate contract for execution.

Schema Details

TokenTransfer

ChainAuthorization (7702 only)

Response

Success Response (201)

Error Responses

Example Request

This is a schematic payload. Replace addresses, hashes, signatures and timing with the values prepared for the actual action. chainAuthorizations[].address must be the configured delegate implementation, not the owner address.

Workflow

  1. Create Action: Submit action with intents
  2. Track Progress: Use returned actionId and intentIds to monitor status
  3. Continue Execution: Let accepted automatic continuation run, or call the execute-step endpoint for the next eligible manually driven step. Managed orders and conditional intents remain worker-owned.
  4. Confirm the result: Distinguish source funding, destination receipt and settlement; a 201 response means the action was created, not completed.

Next Steps

After creating an action: