Generate transaction bytecode
Generate executable transaction bytecode from a quote. The quote must not be expired.
Authorizations
API key for authentication. Obtain from your Pods dashboard.
Body
Quote ID from /v2/swap/quote
"550e8400-e29b-41d4-a716-446655440000"
Fireblocks vault account ID. Required when output=fireblocks.
"12"
Address executing the swap on the origin chain (checksummed EVM or Solana public key)
"EXYhCNamLPFfSMekSn7Lzc2cP32aZpRa7ok5gErdJzcj"
Address receiving tokens on the destination chain (checksummed EVM or Solana public key). Required for onramps unless pixKey or USD bank account fields are provided for fiat offramps.
"EXYhCNamLPFfSMekSn7Lzc2cP32aZpRa7ok5gErdJzcj"
Response format. Fireblocks output requires accountId. instructions is Solana-origin only.
bytecode, userOperation, fireblocks, instructions PIX key for BRL fiat off-ramp routes. Use instead of destinationAddress. Only an explicitly supplied pixKey on a saved crypto-to-BRL fiat off-ramp quote is validated with Avenia. Invalid or unknown keys return INVALID_PIX_KEY (400). Explicit Avenia HTTP 5xx responses allow execution to continue; other lookup failures return PIX_KEY_LOOKUP_FAILED (502).
USD bank account number for USDCāUSD offramp.
USD ABA routing number for USDCāUSD offramp.
Legal name on the USD bank account. ASCII only ā Avenia rejects accents.
Bank name for the USD beneficiary.
Beneficiary street address line 1.
Beneficiary street address line 2 (optional).
Beneficiary city.
Beneficiary state / province.
Beneficiary postal code.
Beneficiary country.
USD beneficiary alias (defaults to bankBeneficiaryName).
Optional Avenia beneficiary description.
USD payment rail. Must match the quote when present.
ACH, WIRE "WIRE"
Provider-specific raw quote data from the quote response. Pass this when the quote includes it.
Set to true for third-party PIX payouts. It must match the value used for the quote.
Optional per-quote webhook endpoint override. When set, it updates the quote webhookURL and is copied to the created action.
"https://example.com/webhooks/swap-action"
Response
Bytecode generated successfully
ID created for execution tracking
"65f1a2b3c4d5e6f789012345"
1
Transaction data for execution
- object[]
- object
Solana instructions when output=instructions (Solana-origin only)
Solana lookup tables keyed by address when output=instructions