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
API key for authentication. Obtain from your Pods dashboard.
Path Parameters
Strategy ID or slug
Query Parameters
Strategy action type. buy and sell are aliases of request-lend and request-withdraw on Ondo stock strategies.
lend, request-lend, buy, withdraw, request-withdraw, sell, quick-withdraw, claim-airdrop, borrow, repay Amount in token smallest unit. Omit when amountInShares supplies the withdrawal amount.
"1000000000000000000"
Withdrawal amount in strategy share-token units.
"1000000000000000000"
Redeem the complete wallet share balance for supported ERC-4626 strategies. Use for an exact full exit; amount remains required as the expected underlying amount.
Skip on-chain wallet balance checks while generating bytecode (fee transfers, native transfers, and Aave lend). The returned transactions can still revert at execution if the wallet cannot fund them.
User wallet address
Source chain ID alias for cross-chain deposits
8453
Source chain ID for cross-chain deposits
8453
Source token for same-chain swap or cross-chain deposit
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Destination chain ID alias for cross-chain withdrawals
8453
Destination chain ID for cross-chain withdrawals
8453
Destination token for cross-chain withdrawals
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Destination wallet address when different from wallet
"0xb794F5eA0ba39494cE839613fffBA74279579268"
Registered swap provider name to use for any swap or bridge leg.
"pods"
Response format
bytecode, userOperation, fireblocks, instructions Fireblocks vault account ID. Required when output=fireblocks.
"12"
Solana reserve address for supported borrow/repay operations
Optional per-action webhook endpoint override.
"https://example.com/webhooks/strategy-action"
Ondo BSC CoW request-lend / request-withdraw only. Client limit price as integer USD cents (17050 = $170.50). Independent of expireAt. Other strategies return 400 PRICE_IN_USD_NOT_SUPPORTED.
17050
Ondo BSC CoW request-lend / request-withdraw only. CoW validTo as a UTC Unix timestamp in seconds (not milliseconds). Must be in the future and at most 168 hours from now. Independent of priceInUsd. Other strategies return 400 EXPIRE_AT_NOT_SUPPORTED.
1778000000
Response
Bytecode generated successfully
Large integer represented as string (for amounts with decimals)
"1000000000000000000"
ID created for execution tracking
"6a04f2f75bf7233c6220b3ca"
8453
42161
Cross-chain route metadata, or null for same-chain strategy actions
Bridge or swap quote metadata when the strategy action includes a swap or bridge. Ondo BSC client-limit quotes also include clientLimitPriceUsd (dollars), spotPriceUsd, and distanceBps.
User operation when output=userOperation
Fireblocks transaction request when output=fireblocks
Base64 Solana transaction when output=bytecode on Solana
Solana instructions when output=instructions
Solana lookup tables keyed by address