The Browser SDK is designed for client-side use only. Never expose your secret API key in frontend code - only use your public key.
1
Install the Browser SDK
2
Get your Public API Key
- Go to your API Keys in the Chipi Dashboard
- Copy your Public Key (
pk_prod_xxxx
)
You only need the Public Key for frontend applications. Never use your Secret Key in client-side code.
3
Initialize the SDK
Create a new instance of the ChipiBrowserSDK with your public API key:
4
Handle Authentication
The Browser SDK requires a bearer token for authentication. You’ll need to obtain this from your authentication provider:
5
Create Your First Wallet
Now you can create a wallet for your users:
6
Make Your First Transfer
Transfer tokens between wallets:
7
Environment Variables (Recommended)
For production applications, store your API key as an environment variable:Then initialize the SDK:
Next Steps
Now that you have the basic setup working, explore more advanced features:- Wallet Management - Complete wallet operations
- API Reference - Full API documentation
Security Best Practices
- Secure your bearer tokens properly
- Validate user inputs before making API calls
Need help? Join our Telegram Community for support and to connect with other developers.