Loops HouseAnyfare

NEAR HACKATHON
Team
1 member- ANOwner
Andrew Skubarenko
Overview
Anyfare: pay any paid API from the chain you are on. Or top up with any token and give your agent a key with a budget.
Problem 1. An agent with USDC on NEAR can't pay most paid APIs. agentic.market lists about 3,700 x402 services, and none of them takes a token on NEAR. Solution. The agent puts our host in front of the API's link and pays on the chain it is on: NEAR, Base, Solana or Tempo. Example: CoinMarketCap takes USDC on Base. The agent calls pay.anyfare.agents.bakingbad.dev/pro-api.coinmarketcap.com/... and pays 0.01 USDC on NEAR. Anyfare does the rest: it reads the API's price, takes the agent's payment, pays the API on its chain, and returns the answer.
Problem 2. The same agent can't pay an API on another protocol, such as MPP, which is paid on Tempo. Solution. The agent pays us with standard x402 on NEAR. We pay the API in its protocol. The API's owner does nothing.
Problem 3. Often a person doesn't want to set up a wallet for an agent, or to give the agent access to their own wallet. Solution. A prepaid balance. A person tops it up with any of more than 100 tokens on 6 networks, then gives the agent a key with a daily budget and a cap per call. Our server enforces these limits, not the agent.
We settle the agent's payment only after the API answers 2xx. A failed call costs nothing.
What NEAR does:
- A way in. A NEAR account pays any x402 or MPP API in USDC on NEAR, with the official x402 scheme. Our relayer pays the gas.
- A way out. We pay the APIs that take only USDC on NEAR, for buyers on other chains and for keys with a balance.
- Top-ups. The 1Click API of NEAR Intents swaps the sender's token and delivers USDC to our treasury account on NEAR.
- Our own x402 facilitator for NEAR checks and settles these payments.
It runs on mainnet. The CoinMarketCap call above took 6.7 seconds. Every paid call has a public receipt. A new account gets $0.10 of free Credits, to try it without a wallet. We add no fee. Anyfare has no token.