Prerequisites
- Node.js 18+
- Stellar testnet account with XLM (Friendbot)
- Basic TypeScript knowledge
Installation
Client Setup
1. Create a Schema
Schemas define the structure of your attestations.string- Text valuesbool- True/falseu32,u64,i32,i64- Integersbytes- Binary data
2. Create an Attestation
3. Query Attestations
4. Revoke an Attestation
Only works if schema hasrevocable: true.
BLS Delegation (Gas-less)
Allow third parties to submit attestations on your behalf.Error Handling
Contract Addresses
Programmatic access:
getContractId(network, version?) from @attestprotocol/stellar-sdk, or GET /api/contracts on horizon.
Next Steps
Schema Design
Best practices for schema design
SDK Reference
Complete method reference