DataLeases

Data Leases lets AI agents discover data providers, negotiate prices, and request checkable answers.

DataLeases

Created At

ETHGlobal Mumbai

Project Description

Data Leases is an open marketplace for recurring, evidence-backed data answers. Instead of buying an entire analytics subscription, users create a lease for a specific question. Each lease defines the required sources, update frequency, freshness limit, maximum price per answer, total budget, and end date.

An autonomous buyer agent discovers compatible providers, compares offers, and negotiates machine-readable terms through the Agent2Agent (A2A) protocol. Providers supply structured answers with their methodology and supporting evidence. Budget rules keep each request within the user’s authorized limits.

The product architecture connects three services. Hedera x402 handles payments per request. Chainlink Runtime Environment (CRE) checks supported measurements against independently accessible blockchain state and external sources. Arkiv provides searchable provider listings and public-safe answer receipts that link the source, methodology, verification result, and payment record.

Payment and verification are separate. Paying for an answer does not establish that it is correct. Verification reports identify which checks passed, failed, or could not be completed.

The initial use case is Ethereum DeFi monitoring, particularly lending liquidity and utilization. Researchers, DAO treasury analysts, and AI applications can use data leases to follow specific metrics. A dashboard brings together the latest accepted answer, data freshness, spending, and verification status.

Data Leases gives buyers a way to obtain specific, checkable answers while allowing independent providers to sell specialized analytics per request.

How it's Made

We built Data Leases as a pnpm monorepo using Node.js and strict TypeScript. Its architecture follows the complete data request flow: discover a provider, negotiate terms, pay for a request, receive an answer, verify its evidence, and publish a traceable receipt. Shared Zod schemas define the messages and data exchanged between these stages.

Discovery connects the buyer agent with providers that support the selected question. Arkiv’s role in the architecture is to hold searchable provider listings, including capabilities, pricing, and evidence requirements. We added Arkiv and hybrid discovery options to the shared contracts. The running implementation currently discovers providers through a local registry; Arkiv reads and writes are not yet implemented.

The buyer and providers run as separate HTTP services using Express and the official A2A JavaScript SDK. Providers publish agent cards, and negotiation messages travel as structured A2A data parts over JSON-RPC. Deterministic rules enforce price ceilings, deadlines, and bounded negotiation rounds. Prices use integer strings and BigInt to avoid rounding errors, while SHA-256 hashes bind the accepted terms.

After agreement, the architecture places Hedera x402 between negotiation and answer delivery. The buyer would complete an HTTP 402 payment flow under an authorized spending policy, linking the settlement receipt to the same request. This enables payment per answer without a subscription. Price negotiation is implemented, but the repository does not yet execute Hedera x402 payments.

The provider returns a structured answer containing the value, units, methodology, and evidence references. For independent checking, we built a Chainlink CRE TypeScript workflow compiled to WebAssembly. It reads LINK token decimals from Ethereum at a specific block and compares the value with Uniswap token metadata fetched over HTTP. Recorded local CLI simulations demonstrate accepted, rejected, and inconclusive outcomes. The browser’s synthetic provider answers currently use a separate mock verification adapter.

After verification, Arkiv’s second role is to store public-safe answer receipts linking methodology, sources, verification status, and payment records. This closes the documented workflow with a searchable history of what was delivered and checked. Payment and verification remain separate facts.

The browser console uses HTML, CSS, and JavaScript served by a Node.js gateway. It displays provider exchanges, agreed terms, answers, and verification details. One notable workaround was importing CRE’s final callback result because user logs could be dropped at shutdown. Request and transcript hashes bind each imported result to its inputs. Vitest covers negotiation rules, shared contracts, and verification integration.

background image mobile

Join the mailing list

Get the latest news and updates

DataLeases | ETHGlobal