An AI underwriting agent finances a farmer's harvest against a tokenized Real-World-Asset invoice โ paying for every off-chain data check via x402 micropayments. Fully on-chain. Fully autonomous.
Most of the world's smallholder farmers have no access to affordable working capital. They sell standing crops for a fraction of their worth just to stay solvent.
The farmers are creditworthy โ predictable yields, growing demand, crop insurance โ but that data lives scattered across weather APIs, market-price feeds, and co-op ledgers. Traditional finance can't stitch it together cheaply enough for a $400 invoice.
AgriTrust closes that gap with an autonomous agent that buys data, underwrites risk, and deploys capital โ all on-chain.
Contract owner onboards the AI underwriter as an authorized agent on-chain.
Farmer registers harvest: Maize ยท Ashanti, Ghana ยท 100 CSPR face value. Invoice #0 created on-chain.
AI agent posts a signed risk verdict: Score 820 ยท Band AA ยท 80% max advance ยท 7.5% discount rate. After x402 data purchase.
Liquidity provider advances 80 CSPR working capital to the farmer. Invoice status โ FUNDED.
Farmer repays at maturity. LP is paid out, 0.5% protocol fee collected. Invoice status โ SETTLED.
An autonomous agent queries weather APIs, satellite NDVI, market-price feeds, and farmer KYC data โ synthesizing them into a deterministic on-chain risk verdict (score, band, max advance, discount rate) in seconds.
Agentic ร On-ChainEvery data check is paid per-request via HTTP 402 + secp256k1 signatures. No subscriptions, no API keys โ the agent drops a fraction of a cent and gets the data. Costs tracked on-chain as x402_spent.
A farmer's harvest becomes an on-chain invoice with commodity, region, face value, and maturity. The contract tracks its full lifecycle: Registered โ Evaluated โ Funded โ Settled / Defaulted.
Built for the Casper Agentic Buildathon. Every transaction is real, on-chain, and verifiable.