Overview
The Cheqd module enables:- DID operations - Create and manage
did:cheqdDIDs - AnonCreds registry - Register and resolve schemas and credential definitions on Cheqd
- Resource management - Store and retrieve DID-linked resources
- Cosmos SDK integration - Leverage Cheqd’s Cosmos-based blockchain
- Payment integration - Transaction fees in CHEQ tokens
Installation
Dependencies
Cheqd module requires:@credo-ts/core- Core functionality@credo-ts/anoncreds- For AnonCreds support (optional)
Registration
Configuration Options
Networks
Testnet
Mainnet
DID Operations
Create did:cheqd DID
Create DID with Specific Service Endpoints
Resolve did:cheqd DID
Update DID Document
Deactivate DID
AnonCreds Operations
Register Schema
Register Credential Definition
Register Revocation Registry
Resource Management
Cheqd supports storing resources linked to DIDs:Create Resource
Resolve Resource
Transaction Fees
Cheqd network operations require CHEQ tokens for transaction fees.Getting CHEQ Tokens
Testnet:- Use the Cheqd Testnet Faucet
- Purchase CHEQ tokens from exchanges
- Transfer to your Cosmos payer address
Checking Balance
Cosmos Payer Seed
ThecosmosPayerSeed is a BIP39 mnemonic that controls the Cosmos address paying for transactions:
Advanced Usage
Custom RPC Endpoint
Multiple Networks
DID Method Specification
Cheqd DIDs follow the format:Best Practices
1. Secure Seed Storage
2. Monitor Token Balance
3. Use Testnet for Development
4. Handle Transaction Errors
Platform Support
The Cheqd module supports:- Node.js - Full support
- React Native - Full support
- Browser - Limited (requires polyfills)
API Reference
DID Operations
agent.dids.create({ method: 'cheqd', ... })- Create did:cheqd DIDagent.dids.resolve('did:cheqd:...')- Resolve DIDagent.dids.update({ did: 'did:cheqd:...', ... })- Update DID documentagent.dids.deactivate({ did: 'did:cheqd:...' })- Deactivate DID
Resource Operations
agent.modules.cheqd.createResource()- Create DID-linked resourceagent.modules.cheqd.resolveResource()- Resolve resource
Utility
agent.modules.cheqd.getBalance()- Check CHEQ token balance
Troubleshooting
Transaction Failures
If transactions fail:- Check token balance
- Verify network connectivity
- Ensure payer seed is correct
- Check network status at Cheqd Explorer