CeloRefer SDK API Reference
Welcome to the CeloRefer SDK API documentation. This reference provides detailed information about all available methods, parameters, and return values for integrating CeloRefer into your dApp.Overview
The CeloRefer SDK is a TypeScript library built on top of viem that provides easy access to all CeloRefer smart contract functionality. It offers type-safe interactions with the contracts and handles all the complexity of blockchain interactions behind a simple API.Installation
Initialization
Error Handling
All SDK methods can throw errors. Common error types include:InvalidAddressError: When an invalid Ethereum address is providedUnauthorizedError: When a method is called by an unauthorized accountInsufficientFundsError: When there aren’t enough funds for a transactionValidationError: When input parameters don’t meet requirements