Skip to main content
POST
Build transaction steps
Builds the userSteps for a quote: the transactions and signatures that the user executes. Call this endpoint for the quote that the user chooses, on every route and every chain.
Do not depend on userSteps in the /quotes response. Get them from this endpoint.
  • New API keys: /quotes does not return userSteps on any route.
  • Solver routes: the solver commits to the price only when you build the steps. /quotes never returns userSteps for these routes.
  • Solana, Sui and IOTA sources, and Canton as source or destination: the steps need the sender’s current on-chain state, or a check that runs only at build time.
If the quote already includes userSteps, this endpoint usually returns the same steps. On some routes, it checks the quote again and can rebuild the steps or return an error. Always execute the steps that this endpoint returns, and use one code path for all routes.

Reference

When to call

On most routes, the API builds the steps once per quote. A second call with the same quoteId returns the same steps. If the steps expire before the user submits them, request a new quote. Do not send two calls for the same quoteId at the same time.

Request body

Response

Returns the userSteps array for the quote. Execute the steps in order. For the full TRANSACTION (EVM included) and SIGNATURE step shapes, see User step types.

User step attributes

User steps can be TRANSACTION or SIGNATURE (same structure as quote response): TRANSACTION step: For Solana, the transaction data is base64-encoded:

Code examples

Response

Solana execution

After building user steps, deserialize and sign the transaction:

Errors

Error responses have this shape:
Canton routes have their own errors. See Canton Coin errors.

Why Solana needs fresh transactions

Solana transactions include a recent blockhash that expires after ~60 seconds. Call /build-user-steps immediately before execution, so that the transaction is valid when the user signs it. Workflow:
  1. Request quote → Receive quote with quoteId
  2. Call /build-user-steps with quoteId → Get the transaction
  3. Sign and submit immediately (within 60 seconds)
  4. If the transaction expires, request a new quote. A second call with the same quoteId returns the same transaction.
  • Quotes — Request transfer quotes
  • Status — Track transfer progress after execution

Examples

  • Solana Example — Complete Solana transfer with transaction building

Authorizations

x-api-key
string
header
required

API key for authenticating requests. Required for /quotes, /build-user-steps, /submit-signature, and /status endpoints.

Body

application/json
quoteId
string
required

The quote ID to build steps for

Example:

"quote_abc123"

Response

200 - application/json

Successfully built user steps

userSteps
object[]