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"

accountId
string

Fireblocks vault account ID. Required when output=fireblocks.

Example:

"12"

originAddress
string

Address executing the swap on the origin chain

Example:

"0xb794F5eA0ba39494cE839613fffBA74279579268"

destinationAddress
string

Address receiving tokens on the destination chain. Required unless pixKey is provided.

Example:

"0xb794F5eA0ba39494cE839613fffBA74279579268"

output
enum<string>
default:bytecode

Response format. Fireblocks output requires accountId.

Available options:
bytecode,
userOperation,
fireblocks
pixKey
string

PIX key for fiat off-ramp routes. Use instead of destinationAddress.

rawQuote
any | null

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

thirdParty
boolean
default:false

Set to true for third-party PIX payouts. It must match the value used for the quote.

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