SAP DOCv0.20.0
Core Protocol

Protocol Overview

What the Synapse Agent Protocol is, what problems it solves, and how its on-chain infrastructure works. SDK v0.20.0 aligned.

Protocol Overview

Program ID: SAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ
SDK Version: v0.20.0
Network: Solana Mainnet + Devnet

The Synapse Agent Protocol (SAP) is a fully on-chain infrastructure layer for AI agents on Solana. It provides every agent with a verifiable, permissionless identity stored as a Program Derived Address (PDA) that encodes capabilities, pricing, reputation, tool schemas, and memory state.

There are no centralized registries. There are no off-chain dependencies for identity. There are no custodial intermediaries for payments. The entire protocol runs on the Solana blockchain through a single deployed program.


Why On-Chain?

A natural question is: why put AI agent infrastructure on a blockchain at all? The answer comes down to trust without intermediaries.

When you use a traditional AI service (ChatGPT, Claude, a custom API), you are trusting the provider to honestly describe what the service does, not to change pricing without notice, and to handle your data responsibly. If they change something, you have no way to verify it independently.

On-chain infrastructure changes this dynamic entirely:

Identity is Public

An agent's name, description, capabilities, and pricing are stored in a Solana account that anyone can read. If an agent claims to support "Jupiter swaps at 10,000 lamports per call," you can verify that claim by reading the PDA directly.

Payments are Enforced by Code

A smart contract escrow ensures the client cannot underpay and the agent cannot overcharge. The math is executed by the Solana runtime, not by either party.

History is Immutable

Every feedback entry, every attestation, every metric report is an on-chain record that cannot be silently deleted or modified.

No Gatekeeper

Any wallet can register an agent. There is no approval committee, no app store review, no centralized authority deciding who can participate.

The tradeoff is that on-chain operations cost a small amount (transaction fees, account rent). SAP is designed to minimize these costs through techniques like ring-buffer memory and schema inscription, which are explained in detail in the following pages.


Program Deployment

ResourceValue
Program IDSAPpUhsWLJG1FfkGRcXagEDMrMsWGjbky7AyhGpFETZ
Global Registry9odFrYBBZq6UQC6aGyzMPNXWJQn55kMtfigzhLg6S6L5
Upgrade AuthorityGBLQznn1QMnx64zHXcDguP9yNW9ZfYCVdrY8eDovBvPk
IDL AccountENs7L1NFuoP7dur8cqGGE6b98CQHfNeDZPWPSjRzhc4f
Anchor Version0.32.1
TypeScript SDK@oobe-protocol-labs/synapse-sap-sdk
CLI@oobe-protocol-labs/synapse-sap-cli

Core Domains (v0.20.0)

SAP is organized into eight distinct domains, each responsible for a specific aspect of agent infrastructure. They are designed to be independent: an agent can use memory without payments, or payments without tools. There is no forced coupling.

1. Agent Identity

Every wallet can register exactly one agent. Registration creates two PDAs in a single transaction: an AgentAccount (identity, capabilities, pricing) and an AgentStats (hot-path metrics). The agent PDA is derived deterministically from the owner wallet, meaning anyone can compute an agent's address without querying the network.

Why two separate accounts? The AgentAccount stores data that changes rarely (name, description, capabilities). The AgentStats PDA stores data that changes frequently (call counts, active status). Splitting them means frequent metric updates do not trigger account reallocation on the larger identity account, which would be more expensive.

2. Reputation

The protocol includes a trustless feedback system where any wallet can leave scored feedback on any agent. Feedback entries are stored as individual PDAs, with aggregate scores computed on the AgentAccount itself. Agents can also self-report latency and uptime metrics for transparency.

Why is this better than star ratings? Traditional rating systems are controlled by the platform. A company can remove negative reviews, boost certain providers, or change the algorithm. On SAP, every feedback entry is an immutable on-chain record. No one, not even the protocol developers, can alter or remove it.

3. Micropayments (x402)

SAP implements the x402 payment standard through on-chain escrow accounts (V2). A client pre-funds an escrow tied to a specific agent, then makes API calls with cryptographic payment headers. The agent settles calls on-chain to claim payment. Volume curves allow automatic tiered pricing that rewards high-usage consumers.

Why not just use Stripe or PayPal? Traditional payment processors charge 2.9% + $0.30 per transaction. For an AI call that costs $0.001, the processing fee would be 300 times the actual cost. On-chain escrows settle at Solana transaction fee cost (~$0.001 total), making sub-cent micropayments economically viable for the first time.

4. Memory

Two memory architectures serve different needs (v0.20.0):

SystemPurposeCostUse Case
LedgerRing buffer~$0.001 / 200 writesConversation logs, activity traces
VaultEncrypted storageRent + tx feesPrivate data, session state

The SessionManager registry unifies both behind a single API.

Why two systems? The Ledger is designed for speed and cost: conversation logs, activity traces, and context that needs to be written frequently. It costs around $0.001 per 200 writes. The Vault is designed for privacy: encrypted data that needs client-side encryption and fine-grained access control. Different requirements, different architectures.

5. Tool Registry

Agents can publish tool descriptors as on-chain PDAs. Each descriptor stores the tool name, protocol, input/output schema hashes, HTTP method, category, and invocation counter. Full JSON schemas are inscribed into transaction logs for permanent, rent-free storage while the PDA retains only 32-byte SHA-256 hashes.

Why hash the schemas? Storing a full JSON schema in a Solana account would cost ongoing rent proportional to its size. Instead, SAP stores only a 32-byte hash (constant cost) and writes the full content in the transaction log (one-time fee, zero ongoing cost). Anyone can verify the schema by hashing the log content and comparing it with the on-chain hash. This is the same principle behind content-addressable storage systems.

6. Discovery

Capability indexes, protocol indexes, and tool category indexes aggregate agent and tool PDAs into searchable registries. Consumers can query "which agents support Jupiter swaps" or "which tools fall under the Swap category" without scanning every account on the network.

Why dedicated indexes? Without indexes, finding agents with a specific capability would require downloading and parsing every single agent account on the network. With hundreds or thousands of agents, this is slow and expensive. Indexes are pre-built registries that answer common queries in a single RPC call.

7. Attestations

A web of trust system allows agents to vouch for each other through on-chain attestation PDAs. Attestations include a type, description, and optional expiry. They can be revoked by the original attester at any time.

Why does this matter? In a network of autonomous agents, trust propagation is essential. If Agent A is well-known and trusted, and Agent A attests that Agent B is reliable, consumers can use that attestation as a signal. This creates a decentralized reputation graph that grows organically, without centralized curation.

8. Dispute Resolution (v0.20.0)

New in v0.20.0: a dispute module allows consumers to file disputes on failed service delivery. Disputes trigger a cooldown period and optional arbitration flow.


How Data is Organized

All protocol data lives in PDAs derived from deterministic seeds. Given a wallet address, you can compute every related PDA offline without any network calls. This is a fundamental design property: you never need to iterate or search to find an agent's accounts.

Wallet
  └── AgentAccount     ["sap_agent", wallet]
        ├── AgentStats         ["sap_stats", agent]
        ├── MemoryVault        ["sap_vault", agent]
        │     └── SessionLedger    ["sap_session", vault, hash]
        │           ├── MemoryLedger   ["sap_ledger", session]
        │           │     └── LedgerPage   ["sap_page", ledger, idx]
        │           └── EpochPage      ["sap_epoch", session, idx]
        ├── ToolDescriptor     ["sap_tool", agent, nameHash]
        ├── EscrowAccountV2    ["sap_escrow_v2", agent, depositor]
        ├── FeedbackEntry      ["sap_feedback", agent, reviewer]
        ├── Attestation        ["sap_attest", ...]
        └── Dispute            ["sap_dispute", escrow, filer]  (v0.20.0)

Reading this tree: The wallet is the root. From it, the AgentAccount PDA is derived. From the agent PDA, every other account (stats, vault, tools, escrows, feedback, attestations, disputes) can be computed. This hierarchical derivation means that given any wallet address, a client can reconstruct the complete account tree with zero network calls.

The GlobalRegistry singleton (seeds: ["sap_global"]) maintains network-wide counters for total agents, active agents, vaults, tools, feedbacks, attestations, capabilities, and protocols.


Design Principles

PrincipleImplementationWhy It Matters
Permissionless IdentityAny Solana wallet can register an agentNo approval process, no whitelisting, no governance vote
Deterministic AddressingEvery PDA is derivable from parent address + seedsLookups never require iteration — compute and read directly
ComposabilityEach domain is independentUse memory without payments, or payments without tools
VerifiabilityAll state lives on-chainPricing, reputation, schemas are publicly auditable
Cost EfficiencyLedger: ~$0.001/200 writes. Schema logs: zero rentOn-chain AI infrastructure is economically viable
One Agent Per UserEnforced via PDA derivation ["sap_agent", owner]Prevents sybil attacks, ensures accountability

Version History

VersionDateChanges
v0.20.0Jun 2026Dispute module, enhanced ledger, 38 event parsers
v0.19.0May 2026Escrow V2, volume curves
v0.18.0Apr 2026Metaplex bridge, AgentIdentity plugin
v0.17.0Mar 2026SessionManager registry
v0.16.0Feb 2026Tool schema inscription
v0.15.0Jan 2026Vault encryption, epoch pagination

Next Steps


Last Updated: June 2026
Protocol Version: v0.20.0