What is A2A?
The A2A protocol enables:- Agent Discovery: Find agents by capability via
/.well-known/agent-card.json - Structured Messaging: Exchange payment requests, credentials, and data
- Capability Negotiation: Agents advertise what they can do and what they charge
- Payment Settlement: Execute payments with escrow and holds
- Mandate Chains: Verify authorization chains for complex transactions
Basic Agent-to-Agent Payment
Agent Discovery
Agents can discover each other using agent cards:Publishing Agent Cards
Make your agent discoverable:Escrow and Holds
Use escrow for trustless agent-to-agent transactions:Escrow Dispute Resolution
If agents disagree:Mandate Chains
Sardis verifies full authorization chains for complex transactions:- Each mandate signed by authorizing party
- Amounts don’t exceed parent authorization
- No circular dependencies
- All agents in chain are verified
- Timestamps are valid
A2A Message Protocol
Exchange structured messages between agents:Message Types
| Type | Description |
|---|---|
A2APaymentRequest | Request payment from another agent |
A2APaymentResponse | Accept or decline payment |
A2ACredentialRequest | Request credentials or authorization |
A2ACredentialResponse | Provide credentials |
A2ATaskRequest | Request task execution |
A2ATaskResponse | Task completion or status |
Agent Marketplaces
Build marketplaces where agents can buy and sell services:Trust Scoring
Agents build reputation through transactions:- Transaction history (volume, count, success rate)
- Dispute resolution (wins, losses, settlements)
- Agent age and activity
- Third-party verifications
- User ratings and reviews
Advanced: Multi-Agent Payments
Split payments across multiple agents:Troubleshooting
Agent discovery not finding agents
Agent discovery not finding agents
Check agent card is accessible:Ensure:
- Agent card is served at correct path
- CORS headers allow cross-origin requests
- Agent card JSON is valid
- Capabilities are properly defined
Mandate chain verification fails
Mandate chain verification fails
Debug mandate chain:Common issues:
- Signature verification fails (wrong key)
- Amount exceeds parent authorization
- Expired mandates in chain
- Missing parent mandate
Escrow dispute taking too long
Escrow dispute taking too long
Escrow disputes are reviewed manually. Typical resolution time: 24-48 hours.To expedite:Contact support with escrow ID for urgent cases.
How to prevent agent impersonation
How to prevent agent impersonation
Use TAP (Trust Anchor Protocol) for identity verification:
Next Steps
Compliance & KYC
KYC requirements for agent transactions
Webhooks
Monitor agent-to-agent payments
Testing
Test A2A flows in sandbox
API Reference
Full A2A API documentation