Generate strategy transaction bytecode
Generate transactions for strategy operations. Supports same-chain deposits/withdrawals, same-chain swaps before deposits, cross-chain deposits, cross-chain withdrawals, Fireblocks output, user operations, and Solana instructions where supported by the strategy.
Documentation Index
Fetch the complete documentation index at: https://docs.deframe.io/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication. Obtain from your Deframe 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
"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"
Response format
bytecode, userOperation, fireblocks, instructions Fireblocks vault account ID. Required when output=fireblocks.
"12"
Solana reserve address for supported borrow/repay operations
Response
Bytecode generated successfully
Large integer represented as string (for amounts with decimals)
"1000000000000000000"
ID created for execution tracking
"6a04f2f75bf7233c6220b3ca"
8453
42161
Canonical source and destination chain route
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