Generate strategy transaction bytecode (v2)
Canonical v2 alias for generating strategy transactions. It accepts the same parameters and returns the same contract as GET /strategies//bytecode.
Authorizations
API key for authentication. Obtain from your Pods dashboard.
Path Parameters
Strategy ID or slug
Query Parameters
Strategy action type
lend, request-lend, withdraw, request-withdraw, 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"
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"
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
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