---
title: "SemanticPay Case Study: Blockchain for AI Payments"
description: "Cheesecake Labs built SemanticPay's blockchain authorization layer on Stellar, a prototype that lets AI agents pay securely within user-defined permissions."
url: "https://cheesecakelabs.com/portfolio/semantic-pay"
locale: "en"
updatedAt: "2026-08-14T04:44:01.035Z"
---

# SemanticPay Case Study: Blockchain for AI Payments

> Cheesecake Labs built SemanticPay's blockchain authorization layer on Stellar, a prototype that lets AI agents pay securely within user-defined permissions.

**Client:** SemanticPay

## Building Trust and
Authorization with Blockchain for
AI-Driven Payments

### Enabling secure payments in the agent economy

#### A  set out to redefine how people and businesses execute payments in an AI-driven world.

The team envisioned a system where AI agents can securely act on behalf of users, combining decentralized identity, [blockchain](https://cheesecakelabs.com/blog/blockchain-technology/), and artificial intelligence into a single payment flow.

#### Agent Commerce

Book flights, hotels, and experiences instantly. Process complex multi-leg journeys with dynamic pricing and real-time availability.

Dynamic pricing

Real-time availability

Multi-currency support

#### Autonomous Agent Tooling

Enable agents to purchase APIs, datasets,
and compute resources autonomously. Scale
operations without human intervention.

Auto-scaling

Resource optimization

Cost monitoring

#### Machine-to-Machine Payments

IoT devices, autonomous vehicles, and smart
infrastructure transact independently. Your
technology working in your favor

IoT integration

Micro-transactions

Device authentication

At an early stage of product development, SemanticPay required a working prototype to validate the concept and demonstrate its feasibility to partners such as the [Stellar Development Foundation](https://stellar.org/) and potential investors.

### Verifying agent authority without sacrificing simplicity

The core challenge centered on a fundamental question: How can an AI agent be verified as legitimately authorized to act on behalf of a human or organization?

Link a verifiable decentralized identity with real payment transactions

Ensure agents can act securely and transparently within defined permissions

Orchestrate identity, wallets, blockchain, and AI without overwhelming users

Maintain strong security guarantees while keeping the experience intuitive

### To answer this, SemanticPay needed to:

Balancing cryptographic rigor with usability was critical to the product’s success.

### Decentralized identity and blockchain as the foundation of trust

Decentralized identity was the core trust layer of the entire Semantic Pay system. We designed a blockchain-based identity and authorization model that addresses a critical requirement of the agent economy: proving not only who someone is, but also what they are authorized to do.

Take a look of how it works:

Decentralized identities anchored to blockchain, eliminating reliance on centralized authorities.

Smart contract–driven permissions, defining exactly how AI agents can act on a user’s behalf.

Wallet-linked authorization, binding identity directly to real transaction execution.

Scoped and revocable access, giving users full control over agent behavior.

By enforcing identity and authorization at the smart contract level, trust and accountability become protocol guarantees — not off-chain assumptions.

#### The result.

Secure, auditable, and automated payments that empower AI agents while keeping users firmly in control.

### From concept to functional infrastructure

Cheesecake Labs partnered closely with SemanticPay through a cross-functional core team, including a product manager, product designer, and blockchain engineer.

Our collaboration focused on turning a complex vision into a cohesive, demonstrable system, covering both infrastructure and user experience.

### A programmable authorization layer for AI agents

Building on this decentralized foundation, we designed and implemented a modular architecture that enables secure agent authorization and automated transactions.

Blockchain architecture and smart contracts for identity, wallets, and authorization

Wallet automation, allowing users to delegate transaction signing to AI agents

Granular permissions and authentication, defining exactly what agents can do

Model Context Protocol (MCP) as an orchestration layer connecting AI, blockchain, and data.

End-to-end web application, showcasing real-world usage of the system.

### Key pillars of the solution included:

### Making advanced infrastructure feel effortless

The final prototype demonstrated the full identity-to-payment flow, proving that AI agents can safely and transparently operate within defined user permissions.

All required smart contracts for identities, wallets, and authorization.

A wallet automation system enabling agent-based transaction signing.

Permissions and authentication mechanisms for agents.

An MCP Server interacting with smart contracts, database, Claude model, and the [Stellar network.](https://cheesecakelabs.com/blog/stellar-network/)

A complete web application demonstrating the MCP Server in action.

### Key pillars of the solution included:

The final prototype demonstrated the full identity-to-payment flow, proving that AI agents can safely and transparently operate within defined user permissions.

Stellar smart contracts written in Rust

Stellar SDK for off-chain interactions

### Blockchain

Node.js and TypeScript

PostgreSQL

Claude Sonnet 4 model

OWASP and W3C standards for decentralized identity

### Backend

React

Vite

### Frontend

## Technologies: built for security, interoperability, and scale

## Infrastructure for the next generation of payments

A  lays the groundwork for a future where AI agents transact responsibly, transparently, and securely—unlocking new possibilities for automation, commerce, and digital trust.

## Is AI or blockchain complexity slowing your product’s growth?

Turn complex technology into secure, production-ready
systems with a partner who understands both.

## Schedule a call

## Structured data

```json
[{"@context":"https://schema.org","@type":"Article","@id":"https://cheesecakelabs.com/portfolio/semantic-pay#article","headline":"SemanticPay Case Study: Blockchain for AI Payments","description":"Cheesecake Labs built SemanticPay's blockchain authorization layer on Stellar, a prototype that lets AI agents pay securely within user-defined permissions.","url":"https://cheesecakelabs.com/portfolio/semantic-pay","mainEntityOfPage":"https://cheesecakelabs.com/portfolio/semantic-pay","datePublished":"2026-02-19T21:39:43.923Z","dateModified":"2026-08-14T04:44:01.035Z","author":{"@id":"https://cheesecakelabs.com/#organization"},"publisher":{"@id":"https://cheesecakelabs.com/#organization"},"about":{"@type":"Thing","name":"SemanticPay"},"inLanguage":"en"},{"@context":"https://schema.org","@type":"BreadcrumbList","@id":"https://cheesecakelabs.com/portfolio/semantic-pay#breadcrumb","inLanguage":"en","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://cheesecakelabs.com/"},{"@type":"ListItem","position":2,"name":"Portfolio","item":"https://cheesecakelabs.com/portfolio"},{"@type":"ListItem","position":3,"name":"Building a blockchain authorization layer for AI agent payments"}]}]
```
