SDK & Integration
Integrate BlockRoll into your applications
API Keys
No API Keys Yet
Generate your first API key to start integrating BlockRoll
Quick Start
Installation
npm install @blockroll/sdkDocumentation
Code Example
import { BlockRoll } from '@blockroll/core';
const client = new BlockRoll({
apiKey: 'your_api_key_here',
network: 'mainnet'
});
// Upload a file
const file = await client.upload({
file: fileBuffer,
name: 'document.pdf',
encryption: 'aes256'
});
// Share a file
await client.share({
fileId: file.id,
recipient: '0x1234...5678',
access: 'view',
expires: '2024-12-31'
});JavaScript SDK
Node.js & Browser
REST API
HTTP Endpoints
Webhooks
Real-time Events