Generate strategy transaction bytecode
Generate transactions for strategy operations. Supports same-chain deposits and withdrawals, swaps before deposits, cross-chain operations, Fireblocks output, user operations, and Solana instructions where supported.
Authorizations
Query Parameters
Explicit depositAddress returns funding instructions for supported strategy transfers. Send the exact quoted customer funding amount in one transfer. With strategy routing enabled, eligible Aave and Morpho deposits compose swaps and bridges into the selected strategy; direct mode returns source-wallet transactions and continuation completes asynchronously. Existing underlying-asset deposit paths remain available. Aave Polygon withdrawals require the selected aToken and redeem the admitted position including accrued interest. No helper deployment is required: fee-bearing withdrawals redeem into the deposit Safe before paying confirmed fees and the customer remainder. Wrong-amount customer funding is refunded to the verified source; wrong tokens and additional transfers are flagged for review. Withdrawals do not compose swaps or bridges. Other requests preserve existing wallet execution.
direct, depositAddress Withdrawal amount in strategy share-token units.
"1000000000000000000"
Redeem the complete wallet share balance for supported ERC-4626 strategies. For Aave Polygon depositAddress withdrawals, uses the full quoted aToken balance; interest accrued before funding may remain in the source wallet. Requires configured withdrawal support. amount remains required as the expected underlying amount.
Ondo stock strategies on BSC and Ethereum only. Order slippage as a fraction of 1 (0.01 = 1% = 100 bps). Range 0.0001–0.5. Omitted, BSC CoW market orders stay at 100 bps, BSC client limits (priceInUsd) stay at 10 bps, and Ethereum primary orders stay at 60 bps. buyAmount, tokenOut.expectedAmountOut, and tokenOut.minAmountOut stay equal at that tolerance. Other strategies return 400 SLIPPAGE_NOT_SUPPORTED. Out of range returns 400 INVALID_SLIPPAGE.
0.002
Response
Bytecode generated successfully