VendingAgent

Autonomous pay-per-call API proxy using Hedera x402 and Chainlink CRE for agentic workflows.

Visit Repo
VendingAgent banner

About

This project is an autonomous pay-per-call API proxy (VendingAgent) designed for the emerging Agentic Economy. It solves the problem of AI agents needing rigid subscriptions or hardcoded API keys to access premium Web2 data. Using Hedera's x402 standard, it gates a premium data endpoint, requiring autonomous agents to stream sub-cent micro-transactions in HBAR to unlock the payload. Furthermore, to protect the upstream Web2 API key from being exposed on-chain or leaked in the logs, the project utilizes Chainlink's CRE Confidential Workflows (running inside a hardware TEE enclave) to securely fetch and return the data. We also integrated Bazantic MCP Recipes so other autonomous agents can easily discover, understand, and autonomously interact with the service.

How it's made

We built the backend API proxy using Node.js and TypeScript, integrating the @hashgraph/sdk to verify x402 micropayments on the Hedera testnet via the Blocky402 facilitator. The core data fetching logic is handled by a Chainlink Runtime Environment (CRE) handlerInTee script. This script securely decrypts the upstream Web2 API key exclusively inside a Trusted Execution Environment (TEE) enclave, ensuring the secret never leaks to the public while executing the confidential workflow. To make the service discoverable, we created a Bazantic Model Context Protocol (MCP) server alongside a recipe.json file that instructs any consumer LLM on exactly how to construct the HBAR transaction and request the data. Finally, a separate autonomous client agent script was written to simulate the end-to-end HTTP 402 payment negotiation and successful data retrieval loop.

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

QuietLast push 82 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Alt Agent

Pay-per-inference AI on Hedera. x402 micropayments auto-routed to the cheapest capable model.