Getting Started / Introduction

Notary Documentation

Audit & compliance for x402 payments

Notary is an open-source audit and compliance layer for x402 payments. It wraps your existing payment fetch calls with a thin SDK that records every transaction, enforces budget limits, and emits real-time alerts — without changing your core payment logic.

Built for AI agent infrastructure: when an agent makes dozens of x402 micro-payments per session, Notary gives operators full visibility into spend, per-agent budget controls, and a tamper-evident audit trail exportable as PDF.

Before & After

Drop in Notary with a one-line wrapper. Your payment logic stays identical.

Plain x402
const response = await fetchWithPayment(
  "https://api.example.com/paid"
)
With Notary
recommended
const secureFetch = wrapWithNotary(fetchWithPayment, {
  agentId: "researcher-01",
  budget: standardPolicy(),
})

const response = await secureFetch(
  "https://api.example.com/paid"
)

Same API. Budget enforcement + audit trail included.