API Key
Get your API key at Pods
Wallet
Have an Ethereum/Polygon wallet address and sufficient USDC balance
.env file:
Step 1: Browse Available Strategies
List all available yield strategies to find one for your use case.JavaScript
Example Response
Example Response
Step 2: Generate Deposit Bytecode
Request ready-to-execute transaction data for depositing into the strategy.JavaScript
cURL
Example Response
Example Response
The response may contain multiple legs (e.g. token approval + deposit). Execute all legs on the
same
chainId in one atomic transaction — not as separate sends. See
Executing Bytecode.Step 3: Execute Transactions
EOA (recommended): use the EIP-7702 example — it mapsresult.bytecode into one executeBatch type-4 transaction.
Smart account: add output=userOperation to the bytecode request and submit the returned
userOperation via your bundler. See Smart Account Deposit.
JavaScript
Step 4: Check Your Position
After depositing, use the/wallets endpoint to check the current position and profit for your strategy.
JavaScript
cURL
Example Response
Example Response
Next Steps
Executing Bytecode
Atomic batching and output format for your wallet stack
Check Positions
Verify the deposit and monitor your user’s yield position
Withdraw
Generate withdrawal transaction data
All Yield Guides
Browse strategies, deposit, check positions, and withdraw
Add Swaps
Also integrate token swaps into your app