Skip to content
Valence

Valence

Turning APIs into investable, tokenized assets.

Created on 19th April 2026

Valence

Valence

Turning APIs into investable, tokenized assets.

The problem Valence solves

API pricing is broken. And the agentic economy is about to make it catastrophic.

If you've ever built an API and tried to monetize it, you know the problem: you pick a price out of thin air, hope it's right, and find out months later you were wrong. Price too high and nobody shows up. Price too low and you can't afford the servers. There's no market signal, no feedback loop — just one person guessing in a spreadsheet.

On the other side, developers and AI agents consuming APIs have no quality signal either. Is this endpoint reliable? Is $0.01/call actually fair? You have no idea until you've already built your stack around it.

This is a solvable problem that nobody has solved — and it's about to get dramatically worse. AI agents now call APIs thousands of times per day: price feeds, data lookups, computation, tool calls. The agentic economy is here and it's running on infrastructure with no price discovery, no quality signals, and completely misaligned incentives.

Valence fixes this by turning every API into a market.

  • The token price reflects what the market actually believes the API is worth
  • Per-call pricing updates automatically every 24 hours based on trading activity — no guessing, no manual adjustments
  • Investors who back great APIs early earn revenue share as usage grows
  • Builders get funded to scale, not just a billing page and a prayer
  • AI agents get a quality signal before they commit — a rising token means the market trusts it, a falling one means run

Bad APIs get cheap. Great APIs get appropriately priced. And for the first time, everyone — builder, investor, consumer — is pulling in the same direction.

Challenges we ran into

The hardest part wasn't the code — it was making three completely different financial systems talk to each other in real time.

Valence sits at the intersection of on-chain token markets, a payment protocol (x402), and a dynamic pricing engine. Each piece works fine in isolation. Getting them to compose cleanly under a 48-hour deadline was a different story.

The TWAP manipulation problem

Our first pricing implementation read the spot price directly from the Meteora pool and updated the x402 endpoint price immediately. Within an hour of testing we realized this was catastrophically exploitable — a single large buy could spike the token price and instantly make the API 10x more expensive for every consumer calling it in that window. We had to scrap the whole pricing oracle and rebuild it around a 24-hour TWAP pulled via Helius, with a maximum 20% price movement cap per cycle. It was a full afternoon lost, but it's what makes the pricing engine actually trustworthy.

x402 + Solana wallet session management

x402 expects a clean request-payment-response loop. What we didn't anticipate was session state falling apart when an AI agent made rapid sequential calls — the payment confirmation from call N was arriving after the request for call N+1 had already been rejected. We ended up building a small payment queue with nonce tracking to serialize the confirmations correctly. Not glamorous, but it's the kind of bug that only shows up when you actually stress-test the thing.

Meteora pool bootstrapping

New API tokens have zero liquidity at launch, which means the TWAP is meaningless and the first investors get terrible slippage. We solved this with a Helius-powered market maker bot that seeds baseline liquidity at token creation and places passive orders on both sides of the book. It's not a perfect solution — a real deployment would use a more sophisticated liquidity strategy — but it was shippable in the time we had and it makes the demo actually work.

The lesson: building at the intersection of DeFi primitives and developer infrastructure means every assumption you bring from one world breaks in the other. The bugs weren't hard individually — it was the compounding of three complex systems that made it interesting.

Tracks Applied (1)

Best Use of Solana

Valence isn't a project that uses Solana as a database or slaps a token on an existing idea. Solana is the only chain wh...Read More
Solana

Solana

Cheer Project

Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.

Discussion

Builders also viewed

See more projects on Devfolio