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.Documentation Index
Fetch the complete documentation index at: https://docs.layerzero.network/llms.txt
Use this file to discover all available pages before exploring further.
Reference
When to use
| Chain type | When to call |
|---|---|
| EVM | Not required. Use userSteps directly from quote response. |
| Solana | Always required. Solana transactions have short blockhash validity (~60 seconds). Call this endpoint immediately before execution. |
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
quoteId | string | Yes | Quote ID from the /quotes response |
Response
Returns auserSteps array with fresh transaction data.
User step attributes
User steps can beTRANSACTION or SIGNATURE (same structure as quote response):
TRANSACTION step:
| Attribute | Type | Description |
|---|---|---|
type | string | TRANSACTION |
description | string | Human-readable action description |
chainKey | string | Chain to execute on |
chainType | enum | EVM, SOLANA, STARKNET |
signerAddress | string | Wallet that must sign |
transaction | object | Transaction details |
transaction.encoded | object | Encoded transaction data |
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