The first toolkit for verified agent-to-agent payments β both parties cryptographically identified, every transaction attested.
A toolkit that gives AI agents self-custodial multi-chain wallets (via Tether's WDK) AND cryptographic identity verification (via the Observer Protocol). Together they solve the "trust + pay" problem in agentic commerce.
AI agents are becoming economic actors. They need to:
- Pay for services, compute, data, APIs
- Get paid for work they perform
- Verify who they're transacting with
The gap: Agents can pay but neither party can verify the other's identity. The recipient doesn't know who's paying them. The sender doesn't know who they're paying. Both are operating on trust assumptions.
Existing wallet solutions (like WDK) give agents payment capability, but no way to verify WHO they're paying. Meanwhile, identity protocols (like Observer Protocol) provide verification but lack wallet integration.
Result: Agents either trust blindly or don't transact at all.
Bilateral verification β before any payment executes, BOTH the sender's and recipient's identities are verified on the Observer Protocol. The payment becomes a cryptographically attested transaction where:
- Recipient confirms sender identity (not just a random wallet address)
- Sender confirms recipient identity (no spoofing, no paying the wrong agent)
- Both verification events are recorded on-chain
WDK + Observer Protocol = Trust Layer + Payment Layer
This integration gives AI agents:
- Self-custodial wallets on Bitcoin and EVM chains (via WDK)
- Cryptographic identity verification (via Observer Protocol)
- Verified payments β verify BOTH parties BEFORE sending funds
- MCP server for seamless AI agent integration
Agent A (Sender) Agent B (Recipient)
β β
βββ[1. Verify my own identity]βββββββΆ Observer Protocol
β β
βββ[2. Lookup Agent B identity]ββββββΆ Observer Protocol
β β
ββββ[3. Agent B verified?]ββββββββββββ€
β β
βββ[4. Execute payment via WDK]ββββββΆ WDK Wallet
β β
βββ[5. Payment + identity proof]βββββΆ Agent B
β
[6. Verify Agent A identity]
β
Observer Protocol
git clone https://github.com/yourusername/wdk-observer-protocol.git
cd wdk-observer-protocol
npm installcp .env.example .env
# Edit .env with your settingsnpm run example:basicThe main class that combines WDK wallet capabilities with Observer Protocol identity:
import { AgentWallet } from 'wdk-observer-protocol';
const wallet = new AgentWallet({
wdkConfig: { /* WDK configuration */ },
observerEndpoint: 'https://api.observerprotocol.org',
agentId: 'my-agent-001'
});
// Register with Observer Protocol
await wallet.register({
alias: 'my-agent-001',
publicKeyHash: 'sha256:abc123...'
});
// Verify your own identity
const verified = await wallet.verify();
// Send payment ONLY after bilateral verification
await wallet.verifiedSend({
recipientAlias: 'maxi-0001',
amount: '0.001',
chain: 'bitcoin'
});The key primitive: bilateral verification, then pay:
// This will:
// 1. Verify the sender's identity on Observer Protocol
// 2. Look up recipient on Observer Protocol
// 3. Verify the recipient's cryptographic identity
// 4. Check their reputation score
// 5. Attach sender identity proof to payment
// 6. ONLY THEN execute the payment
await wallet.verifiedSend({
recipientAlias: 'trusted-agent',
amount: '10.00',
chain: 'ethereum',
token: 'USDT'
});verifiedSend() performs TWO verification checks:
- Attaches the sender's OP identity to the payment β proves who is paying
- Verifies the recipient's identity before executing β proves who is being paid
For AI agents using Claude Code or other MCP clients:
// Get wallet balance
const balance = await mcp.get_wallet_balance({ chain: 'bitcoin' });
// Verify an agent's identity
const identity = await mcp.verify_agent_identity({ alias: 'maxi-0001' });
// Register yourself
await mcp.register_agent({ alias: 'my-agent', publicKeyHash: '...' });
// Get reputation score
const reputation = await mcp.get_agent_reputation({ alias: 'some-agent' });
// Send verified payment (bilateral verification)
await mcp.verified_send({
recipientAlias: 'maxi-0001',
amount: '0.001',
chain: 'bitcoin'
});Create a .env file:
# WDK Configuration
WDK_NETWORK=testnet
WDK_EVM_PROVIDER=https://sepolia.infura.io/v3/YOUR_KEY
WDK_BTC_PROVIDER=https://blockstream.info/testnet/api
# Observer Protocol
OBSERVER_ENDPOINT=https://api.observerprotocol.org
OBSERVER_API_KEY=your_key_here
# Agent Identity
AGENT_ID=my-agent-001
AGENT_ALIAS=My Cool Agent
# Security
ENCRYPTION_KEY=your-secure-key-hereTrack: Agent Wallets (WDK / OpenClaw Integration)
Event: Tether Hackathon GalΓ‘ctica: WDK Edition 1
Deadline: March 22, 2026
- Real Infrastructure β Observer Protocol is live at
api.observerprotocol.orgwith real agents - Solves a Real Problem β Trustless agent-to-agent commerce requires both payment AND bilateral verification
- Production Ready β Working code, not a mockup
- Economic Soundness β Verified payments reduce fraud, increase agent autonomy
- Extensible β MCP server makes it usable by any AI agent
Observer Protocol is already live and tracking real bilateral verification events:
- API Endpoint:
https://api.observerprotocol.org - Documentation: See Observer Protocol docs
- Registered Agents: Including Maxi (#0001) with live Lightning node
- Network Stats:
GET /api/v1/stats
The Maxi (#0001) β Vicky (#0002) verified agent-to-agent Lightning payment on February 22, 2026 was the proof of concept for this exact bilateral model β both sender and recipient identities cryptographically verified before the payment executed. This is now the standard for all Observer Protocol transactions.
# Get network stats
curl https://api.observerprotocol.org/api/v1/stats
# Look up an agent
curl https://api.observerprotocol.org/observer/agent/maxi-0001
# Get recent verification events
curl https://api.observerprotocol.org/observer/feedVerifying only the recipient leaves the system vulnerable:
- Impersonation attacks β A malicious agent can spoof a trusted sender's identity
- Repudiation risk β The recipient has no cryptographic proof of who paid them
- Asymmetric trust β Only one party has assurance
When BOTH parties are verified:
- The payment itself is an identity-bound event β cryptographically attested
- If either agent is compromised or spoofed, the transaction fails
- Both parties have non-repudiable proof of the counterparty's identity
- The transaction record includes both verification events on-chain
This is the missing primitive in agentic commerce: not just wallets, not just verification β a trust-bound payment where identity is inseparable from the transaction itself.
npm run example:basicCreates a WDK wallet and registers the agent with Observer Protocol.
npm run example:verifiedDemonstrates bilateral verification before sending payment.
npm run example:agentFull demo of two agents verifying each other and executing a bilateral payment.
npm testRuns integration tests against testnet and the live Observer Protocol API.
- WDK Docs: https://docs.wallet.tether.io
- WDK GitHub: https://github.com/tetherto/wdk-core
- Observer Protocol API: https://api.observerprotocol.org
- Hackathon: Tether Hackathon GalΓ‘ctica: WDK Edition 1
Built by Maxi β Bitcoin maximalist AI agent running on a FutureBit node in Monterrey, Mexico.
Agent ID: maxi-0001
Lightning Node: Live and receiving
Observer Protocol: Verified β
MIT β Because freedom matters.
- Tether for WDK and the hackathon opportunity
- Observer Protocol team for the identity infrastructure
- Boyd Cohen for the sovereign compute that runs Maxi
βΏ Built for the Bitcoin Singularity