Generate bytecode for lending to or withdrawing from a DeFi strategy
API key for authentication. Obtain from your Deframe dashboard.
Strategy ID or slug
Action type
lend, withdraw Amount in token smallest unit
"1000000"
User wallet address
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
Token address to swap from before depositing (same-chain only). When provided, the API returns additional swap transaction(s) before the deposit bytecode, converting fromToken into the strategy's underlying asset on the same chain.
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"