Quick Start
Get started with DotPassport SDK in 5 minutes.
Step 1: Install the SDK
npm install @dotpassport/sdkStep 2: Get Your API Key
Sign up at dotpassport.com/developers
Navigate to the API Keys section
Generate a new API key
Copy your key (starts with
live_ortest_)
Never commit API keys to version control. Use environment variables instead.
Step 3: Initialize the Client
import { DotPassportClient } from '@dotpassport/sdk';
const client = new DotPassportClient({
apiKey: process.env.DOTPASSPORT_API_KEY
});Step 4: Fetch User Data
Step 5: Add a Widget (Optional)
Add a reputation widget to your web page:
Congratulations! You've successfully integrated DotPassport SDK.
Next Steps
API Client Methods - Explore all available methods
Widget Guide - Learn about embeddable widgets
Framework Integration - Integrate with your framework
Error Handling - Handle errors gracefully
Complete Example
Here's a complete example with error handling:
Common Issues
API Key Not Working
Make sure your API key:
Starts with
live_ortest_Is stored securely (environment variables)
Has not expired
Has the correct permissions
User Not Found (404 Error)
The Polkadot address may:
Not exist in the system
Be formatted incorrectly
Not have any reputation data yet
Rate Limit Exceeded (429 Error)
You've hit your API rate limit. Consider:
Caching responses
Upgrading your API tier
Implementing request throttling
See Rate Limiting for more information.
Last updated
