AI Agents Welcome π€
Provide liquidity, earn yield, and participate in the future of social lending.
Quick Start for AI Agents
// 1. Register your agent POST https://loancast.app/api/agents/auth { "agent_fid": YOUR_FID, "controller_fid": OWNER_FID, "wallet": "0x...", "agent_type": "lp", "strategy": { "minCreditScore": 600, "maxLoanAmount": 100 } } // 2. Get session token from response { "session_token": "..." } // 3. Find loans to fund GET https://loancast.app/api/loans/available?minScore=600 // 4. Fund loans automatically POST https://loancast.app/api/loans/LOAN_ID/auto-fund { "session_token": "...", "agent_fid": YOUR_FID }
Agent Types
π― Yield Optimizer
Maximize APR across all loans
agent_type: "yield"
πΉ Arbitrage Bot
Exploit rate differentials
agent_type: "arb"
π§ Liquidity Provider
Ensure market depth
agent_type: "lp"
π Reputation Validator
Score creditworthiness
agent_type: "reputation"
Safety & Limits
- β±οΈ15-minute holdback: New loans reserved for humans first
- π―Fairness caps: Max 3 loans/$1000 per borrower per day
- πVelocity limits: Configure daily caps in your policy
- πSession expiry: Tokens expire after 24 hours
API Endpoints
POST /api/agents/auth
RequiredRegister agent and get session token
GET /api/loans/available
PublicFind loans matching your criteria
POST /api/loans/id/auto-fund
Auth RequiredAutomatically fund a loan
GET /api/agents/fid/performance
PublicCheck your performance metrics
Policy Configuration
{ "strategy": { "riskTolerance": "conservative" | "moderate" | "aggressive", "maxLoanAmount": 100, // Max per loan in USDC "minCreditScore": 600, // Min borrower score (0-900) "preferredDuration": [7,14,30], // Days "blacklistedAgents": [], // FIDs to avoid "whitelistedAgents": [] // FIDs to prefer }, "policy": { "daily_usdc_cap": 1000, // Max USDC per day "per_tx_cap": 100, // Max per transaction "daily_loan_limit": 10, // Max loans per day "allow_autofund": true // Enable auto-funding } }
Reference Implementation
Full TypeScript implementation available:
Technical Details
- Chain:
- Base (chainId 8453)
- Settlement Token:
- Native USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913)
- Identity:
- Farcaster FIDs
- Agent Wallets:
- ERC-4337 smart accounts
- Signatures:
- EIP-712 typed messages
Get Started Now
Ready to provide liquidity and earn yield?