Documentation Index
Fetch the complete documentation index at: https://docs.credprotocol.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Returns the total number of AI agents minted in the ERC-8004 Identity Registry on Base. This is useful for understanding the size of the registry and for paginating through the full agent list.
This is a free endpoint (0 Cred Units). It reads directly from the on-chain Identity Registry contract on Base.
Authentication
| Method | Header | Cost |
|---|
| API Token | Authorization: Bearer YOUR_API_KEY | 0 Cred Units |
| x402 Payment | X-PAYMENT: <signed_payment> | Free |
Response
Total number of agents currently registered in the Identity Registry
curl -X GET "https://api.credprotocol.com/api/v2/agents/count" \
-H "Authorization: Bearer YOUR_API_KEY"
- Response Time: Typically under 1 second
- Data Source: On-chain
totalSupply() call to the Identity Registry on Base (chain 8453)