Pilot quickstart

Add OnChainDiligence to one existing payment flow.

Keep your wallet. Keep your payment provider. Add OCD once. A pilot uses one existing, low-value agent payment and ends with a signed receipt you can verify yourself.

Start here: sign in, install SDK 0.10.1 and try free preflight → Obtain a workspace API key, configure durable recovery and select preflightMode: 'free' to get a policy decision and signed receipt without an OCD fee signer. The same checklist retains the optional offline/mock quickstart.

What OCD does

OnChainDiligence is an independent reconciliation layer for autonomous-agent payments. The wallet enforces and signs; OCD records and reconciles:

  • Before payment, it checks the proposed payment against the policy you supply and returns ALLOW, REQUIRE_APPROVAL or BLOCK, with a signed preflight receipt.
  • After payment, it independently reads the chain to see what actually settled, and issues a signed receipt that keeps the policy decision, the execution and the settlement as separate statements.

OCD does not hold wallet keys, authorize spending, execute payments, guarantee safety or compliance, detect fraud, or prove that a merchant delivered a service. It works alongside whichever executor you already use.

Where it sits in a payment flow

  1. 01Agent proposes a payment
  2. 02OCD checks it against your policy
  3. 03Your wallet or executor authorizes and pays
  4. 04OCD independently observes what settled
  5. 05A signed receipt records the evidence

What you send OCD

  • The proposed payment: network, asset, amount, recipient, and optionally the resource URL and paying wallet — public values only.
  • Your policy: for example a maximum amount, allowed networks and assets, and an expected recipient.
  • After your executor pays: the transaction hash.
  • Optionally, what your payment provider reported, recorded as a provider claim (see provider evidence).
Never send private keys, seed phrases, wallet/provider API secrets, signing credentials, or private URL parameters as evidence. Your OCD workspace API key is different: supply it only as SDK accountApiKey for account authentication, never in evidence, logs or browser code.

What OCD returns

StageYou receive
PreflightA decision (ALLOW / REQUIRE_APPROVAL / BLOCK) with reasons, and a signed preflight receipt.
After paymentA signed receipt with settlement CONFIRMED, NOT_CONFIRMED or UNVERIFIED, the exact preflight-versus-observation checks, and a stated binding strength.
VerificationVALID, INVALID or UNVERIFIABLE — online, or offline with OCD’s published keys.

VALID means the receipt is intact and was signed by OCD under the verifier contract. It is not proof of settlement, payment authorization, service delivery, safety or compliance.

What stays under your control

Your wallet or payment provider keeps the keys, signs, submits, and applies its own approval rules. An OCD ALLOW is a policy opinion, never an authorization to spend: your executor still independently decides whether to pay, and OCD never overrides it.

Supported today

  • Independent settlement observation for USDC on Base and Ethereum, pathUSD on Tempo, and USDC on Solana.
  • Documented SDK executor paths for Base USDC x402 v2 exact, Turnkey, Crossmint, Coinbase CDP and Circle, or your own CommerceExecutor. Each provider has its own setup/recovery restrictions; an adapter is not a partnership.

PayBox is an adapter seam, not a proven native integration. FLOP, Tempo MPP and Stripe MPP are not native commerce integrations in this onboarding path; observing a network is not support for its payment protocol.

Easiest integration routes

1. Start with a payment that already happened

No integration at all: send a supported transaction reference and get a signed observation-only receipt. Its decision is UNKNOWN, because OCD did not check anything before that payment.

curl -s -X POST https://mcp.onchaindiligence.com/observe-payment \
  -H "Content-Type: application/json" \
  -d '{"network":"eip155:8453","transaction_hash":"0x…"}'

2. TypeScript: the Commerce SDK

Use the published MIT SDK in Node.js. Follow the existing SDK onboarding checklist for free mode, the optional mock demo and paid alternative, and the autonomous payment reference for lifecycle details.

npm install @onchaindiligence/sdk@0.10.1

Before production, sign in to Dashboard → API Keys, create a named key and pass it server-side as accountApiKey. Configure private persistent NodeFileRecoveryStore storage or a database-backed recovery store. Inspect the owned operation in Reconciliation and verify its receipt. Never restart an ambiguous purchase as a new operation.

The plain withOcd wrapper supports only documented x402 v2 exact paths; it is not arbitrary payment interception or the proxy’s full purchase-attempt journal. Auto-Evidence @onchaindiligence/auto-evidence-proxy@0.2.0-rc.0 is a published MIT prerelease under next; latest remains older. Use the exact-version install and free-mode setup on the developer page.

3. Any language: HTTP

Open an operation, preflight, register the execution, pay with your own executor, then finalize with the transaction hash:

POST /operations                                   → operation_id, recovery_credential
POST /operations/:id/preflight/free                → decision, signed preflight receipt, finalization capability
POST /operations/:id/execution-bindings            → durable execution identity (before you pay)
     …your own wallet or provider pays…
POST /operations/:id/finalize                      → signed receipt from OCD's own chain observation

Base URL: https://mcp.onchaindiligence.com. Free preflight supports canonical Base USDC and Solana mainnet USDC: 100 completed evaluations per workspace per UTC month, including ALLOW and BLOCK. Send your workspace API key and the operation’s original recovery credential on the free route. No OCD fee signer is needed; merchant payments and gas remain separate. Exhaustion returns 429 free_allowance_exhausted, never an automatic paid fallback. Paid mode remains available at POST /x402/lifecycle/preflight-payment: 0.01 USDC on Base, including BLOCK evaluations, using an x402-aware fetch and your fee wallet. Observation-only receipts and verification are free. Keep recovery credentials and finalization capabilities server-side, never in browser storage, receipts or logs.

What a pilot looks like

  1. Pick one existing, low-value payment your agent already makes.
  2. Run an OCD preflight before it, with your policy.
  3. Pay exactly as you do today, with your own executor.
  4. Finalize with the transaction hash and receive the signed receipt.
  5. Verify the receipt, and tell us whether the evidence was useful.

To plan it, we only need: your executor or payment provider, the network and asset, your language or runtime, the payment flow you want to use, whether you receive a transaction hash, and whether your provider emits its own evidence. We will never ask for keys or credentials.

Contact

Email support@onchaindiligence.com with the subject “pilot”. We are happy to work entirely asynchronously.