Build transaction steps
API Reference
Build User Steps
Generate fresh transaction data for Solana transfers with up-to-date blockhash.
POST
Build transaction steps
Generates fresh transaction data for a quote. Required for Solana transfers due to short blockhash validity.
Reference
When to use
Request body
Response
Returns auserSteps array with fresh transaction data.
User step attributes
User steps can beTRANSACTION or SIGNATURE (same structure as quote response):
TRANSACTION step:
For Solana, the transaction data is base64-encoded:
Code examples
- cURL
- TypeScript
- Python
Response
Solana execution
After building user steps, deserialize and sign the transaction:Why Solana needs fresh transactions
Solana transactions include a recent blockhash that expires after ~60 seconds. The/build-user-steps endpoint generates transactions with the latest blockhash, ensuring they remain valid during execution.
Workflow:
- Request quote → Receive quote with
quoteId - Call
/build-user-stepswithquoteId→ Get fresh transaction - Sign and submit immediately (within 60 seconds)
Related endpoints
- Quotes — Request transfer quotes (includes
userStepsfor EVM) - Status — Track transfer progress after execution
Examples
- Solana Example — Complete Solana transfer with transaction building
Authorizations
API key for authenticating requests. Required for /quotes, /build-user-steps, /submit-signature, and /status endpoints.
Body
application/json
The quote ID to build steps for
Example:
"quote_abc123"
Response
200 - application/json
Successfully built user steps