Skip to main content
POST
Generate transaction bytecode

Authorizations

x-api-key
string
header
required

API key for authentication. Obtain from your Pods dashboard.

Body

application/json
quoteId
string
required

Quote ID from /v2/swap/quote

Example:

"550e8400-e29b-41d4-a716-446655440000"

originAddress
string
required

Address executing the swap on origin chain

Example:

"0xb794F5eA0ba39494cE839613fffBA74279579268"

destinationAddress
string
required

Address receiving tokens on destination chain

Example:

"0xb794F5eA0ba39494cE839613fffBA74279579268"

rawQuote
any | null

Provider-specific raw quote data from the quote response. Pass this when the quote includes it.

webhookURL
string<uri>

Optional per-quote webhook endpoint override. When set, it updates the quote webhookURL and is copied to the created action.

Example:

"https://example.com/webhooks/swap-action"

Response

Bytecode generated successfully

id
string
required

ID created for execution tracking

Example:

"65f1a2b3c4d5e6f789012345"

chainId
number
required
Example:

1

transactionData
object
required

Transaction data for execution