Skip to main content
This quickstart walks you through integrating a DeFi yield strategy into your application. You’ll browse available strategies, generate deposit transaction data, and execute it with your user’s wallet.

API Key

Get your API key at Pods

Wallet

Have an Ethereum/Polygon wallet address and sufficient USDC balance
Ensure your wallet has sufficient USDC on Polygon and MATIC for gas fees.
Create a .env file:
Never commit your .env file to version control. Add it to .gitignore.

Step 1: Browse Available Strategies

List all available yield strategies to find one for your use case.
JavaScript
Use id (e.g. Aave-USDC-polygon) as the strategy identifier in the next steps.

Step 2: Generate Deposit Bytecode

Request ready-to-execute transaction data for depositing into the strategy.
JavaScript
cURL
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

Do not loop over bytecode and call sendTransaction for each item. Batch every leg into a single transaction. For EOAs, use EIP-7702. For smart accounts, request output=userOperation. See Executing Bytecode.
EOA (recommended): use the EIP-7702 example — it maps result.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
Call this endpoint periodically to track how your user’s position grows over time.

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