Developer Portal
Everything you need to integrate KeyPass into your applications. SDKs, APIs, and comprehensive documentation.
Quick Start
1. Install SDK
npm install @keypass/sdk
2. Initialize
Configure your property and connection
3. Start Building
Mint tokens and verify access
Mint KeyPass Token
import { KeyPass } from '@keypass/sdk';
import { Connection, PublicKey, Keypair } from '@solana/web3.js';
const connection = new Connection('https://api.mainnet-beta.solana.com');
const keypass = new KeyPass({
connection,
propertyId: 'property_123',
programId: new PublicKey('KeyPass1111111111111111111111111111111111'),
});
async function mintAccessToken() {
const guestKeypair = Keypair.generate();
const result = await keypass.mintKeyPass({
guestWallet: guestKeypair.publicKey,
accessStart: new Date('2024-01-15T15:00:00Z'),
accessEnd: new Date('2024-01-15T18:00:00Z'),
permissions: ['main_entrance', 'elevator', 'parking'],
metadata: {
propertyName: 'Downtown Loft',
unitNumber: '4B',
guestName: 'John Doe'
}
});
console.log('Token minted successfully:', result.signature);
console.log('Token account:', result.tokenAccount.toString());
return result;
}
Join the Community
Connect with other developers, get help, and contribute to the KeyPass ecosystem.