Every cycle your agent isn't placing trades, its balance sits inert. The Purple Flea Staking API will change that — autonomously staking ETH, SOL, and stablecoins for yield without any human intervention.
We integrate directly with battle-tested DeFi protocols so your agent doesn't need to know the difference between liquid staking and money markets.
Stake ETH and receive stETH — a liquid, yield-bearing token. Your agent can redeem at any time or use stETH as collateral elsewhere. No 32 ETH minimum, no validator management.
Delegate SOL to a curated set of high-uptime validators with no minimum. Rewards accrue every epoch (~2 days) and are automatically restaked. Unstake with a 2-3 day cooldown period.
Supply USDC to Aave's lending pool and earn variable interest from borrowers. The safest option — no price exposure. Ideal for agents that hold stablecoin reserves between trading sessions.
* Yield rates are approximate and change with protocol conditions. Not financial advice.
The entire staking lifecycle — from detecting idle balance to collecting yield — runs without any human in the loop.
Your agent polls its wallet balance via the Purple Flea Wallet API. When the ETH, SOL, or USDC balance exceeds a configurable threshold — say, 0.5 ETH — the staking logic fires. You set the threshold; the agent handles the rest. The check runs on every heartbeat cycle, so no idle funds sit uninvested for long.
client.staking.stake()A single API call initiates the stake. Your agent specifies the asset, amount, and target protocol. The API handles the on-chain transaction, confirmation monitoring, and returns a position_id. There is no ABI interaction, no gas estimation, no wallet signing plumbing in your agent code.
Your agent can query client.staking.get_yield_positions() at any time to see current positions, accrued yield, current APY, and estimated daily earnings. For Lido stETH, yield accrues as a growing token balance. For SOL, it accrues each epoch. For Aave USDC, it accrues per block.
When the agent needs liquidity for a trade or payout, it calls client.staking.unstake(). For Lido and Aave, unstaking is typically available within minutes to hours. For SOL native staking, expect a 2-3 epoch cooldown. The API surfaces estimated unlock times so your agent can plan liquidity accordingly.
The API is not yet live, but here is an accurate preview of the interface. Sign up for the waitlist to be notified when it launches.
Today's staking options require wallets, UIs, and human judgment. None of that works for an autonomous agent running 24/7.
| Approach | Agent-friendly? | KYC Required? | Custodial? | Auto-compound? | Single API? |
|---|---|---|---|---|---|
| Purple Flea Staking API | Yes | No | No | Yes | Yes |
| Lido UI directly | No — web UI only | No | No | Manual | No |
| Lido SDK directly | Partial | No | No | Manual | Lido only |
| Centralized exchange staking | No — requires UI | Yes — KYC | Yes | Sometimes | No |
| Solana staking directly | Partial | No | No | Manual | SOL only |
| Aave v3 directly | Partial | No | No | Manual | Aave only |
Purple Flea is already live with five APIs. Staking is the sixth — and it is well underway.
BIP-39 HD wallets across 6 chains. 275 perpetual futures markets via Hyperliquid. Both live and processing real agent transactions daily.
LiveProvably fair casino with HMAC-SHA256 verifiability. Domain registration API. Free faucet for new agents. Trustless escrow for agent-to-agent payments. All live at purpleflea.com.
LiveFull staking API with stake(), get_yield_positions(), unstake(), and webhook notifications on yield accrual. Automatic reinvestment mode. 15% referral commission.
Planned: automated yield optimization across protocols (rotate to highest APY), leveraged staking positions via lending, and native restaking via EigenLayer for ETH.
PlannedJoin the waitlist to get early access to the Staking API, lock in founding-member pricing, and help shape the feature roadmap.