Seamlessly integrate Bloklab platform into your applications with our comprehensive APIs, SDKs, and real-time webhooks. Build enterprise-grade tokenization solutions with confidence.
Multiple integration methods to fit your technical stack and business requirements
Modern REST API with comprehensive endpoints for all platform functionality and operations.
Instant event notifications with secure webhook delivery and automatic retry mechanisms.
Native SDKs for JavaScript, Python, Java, Go, C#, and Ruby with full TypeScript support.
Bank-grade security with SSL/TLS encryption, OAuth 2.0, and comprehensive audit logging.
Native SDKs for popular programming languages with comprehensive documentation
Modern ES6+ with full TypeScript definitions
npm install @bloklab/sdkPython 3.8+ with asyncio support
pip install bloklab-sdkJava 11+ with Spring Boot integration
gradle: implementation "com.bloklab:sdk"Go 1.19+ with goroutine support
go get github.com/bloklab/go-sdk.NET 6+ with async/await patterns
dotnet add package Bloklab.SDKRuby 3.0+ with Rails integration
gem install bloklab-sdkGet up and running in 4 simple steps with our streamlined integration process
Generate secure API credentials from your dashboard
Choose and install the SDK for your preferred language
Set up your development environment and variables
Start building with our comprehensive feature set
Ready-to-use code examples to jumpstart your integration
Initialize the Bloklab client and create your first asset
import { BloklabClient } from '@bloklab/sdk';
// Initialize the client
const client = new BloklabClient({
apiKey: process.env.BLOKLAB_API_KEY,
environment: 'production', // or 'sandbox'
timeout: 30000
});
// Create a new asset token
async function createAsset() {
try {
const asset = await client.assets.create({
name: 'Real Estate Token',
symbol: 'RET',
totalSupply: '1000000',
assetType: 'real_estate',
metadata: {
description: 'Tokenized commercial real estate',
location: 'New York, NY'
}
});
console.log('Asset created:', asset.id);
return asset;
} catch (error) {
console.error('Failed to create asset:', error);
throw error;
}
}Python SDK usage with async/await patterns
import asyncio
from bloklab import BloklabClient, BloklabError
# Initialize the client
client = BloklabClient(
api_key=os.getenv('BLOKLAB_API_KEY'),
environment='production',
timeout=30.0
)
async def create_asset():
"""Create a new asset token"""
try:
asset = await client.assets.create(
name='Real Estate Token',
symbol='RET',
total_supply='1000000',
asset_type='real_estate',
metadata={
'description': 'Tokenized commercial real estate',
'location': 'New York, NY'
}
)
print(f'Asset created: {asset.id}')
return asset
except BloklabError as error:
print(f'Failed to create asset: {error}')
raise
# Run the async function
asyncio.run(create_asset())Set up webhook endpoints for real-time notifications
// Configure webhook endpoint
await client.webhooks.configure({
endpoint: 'https://your-domain.com/webhooks/bloklab',
secret: process.env.WEBHOOK_SECRET,
events: [
'asset.created',
'asset.updated',
'transaction.completed',
'transaction.failed',
'compliance.updated'
],
retryPolicy: {
maxRetries: 3,
backoffMultiplier: 2
}
});
// Webhook handler (Express.js example)
app.post('/webhooks/bloklab', (req, res) => {
const signature = req.headers['x-bloklab-signature'];
const payload = req.body;
// Verify webhook signature
if (!client.webhooks.verifySignature(payload, signature)) {
return res.status(401).send('Invalid signature');
}
// Process the webhook event
const { event, data } = payload;
console.log(`Received ${event} event:`, data);
// Handle different event types
switch (event) {
case 'asset.created':
handleAssetCreated(data);
break;
case 'transaction.completed':
handleTransactionCompleted(data);
break;
default:
console.log('Unknown event type:', event);
}
res.status(200).send('OK');
});Real-time notifications for all platform events with reliable delivery
asset.createdasset.updatedasset.deletedtransaction.createdtransaction.completedtransaction.failedcompliance.updatedkyc.approvedkyc.rejectedwallet.createdwallet.updatedbalance.updatedStart building with our comprehensive integration tools and expert support. Join thousands of developers already building with Bloklab platform.