npm install @skannr/sdk
import { Skannr } from '@skannr/sdk'
const skannr = new Skannr('your-api-key')
Install the SKANNR browser extension for automatic token scanning on DeFi platforms.
Sign up for a SKANNR account and generate your API key from the dashboard.
Store your API key securely using environment variables:
SKANNR_API_KEY=your_api_key_here
import { Skannr } from '@skannr/sdk'
const skannr = new Skannr({
apiKey: process.env.SKANNR_API_KEY,
network: 'ethereum' // or 'polygon', 'bsc', etc.
}
Test your installation with a simple token scan:
import { Skannr } from '@skannr/sdk'
const skannr = new Skannr({
apiKey: process.env.SKANNR_API_KEY,
network: 'ethereum'
}
async function testScan() {
try {
const result = await skannr.scanToken({
address: '0xA0b86a33E6441E6C8A2Dd4e5b5b6e8e8e8e8e8e8',
includeRiskScore: true
}
console.log('Scan successful!', result)
} catch (error) {
console.error('Scan failed:', error)
}
testScan()
Make sure your API key is correct and has the necessary permissions. Check the dashboard for key status.
Ensure your application can make HTTPS requests to api.skannr.com. Check firewall and proxy settings.
If you're hitting rate limits, consider upgrading your plan or implementing request queuing.