SDK Integration Guide
Connect to FortiBlox Nexus RPC using popular Solana development libraries
SDK Integration Guide
FortiBlox Nexus RPC is fully compatible with all standard Solana development libraries and frameworks. This guide shows you how to integrate FortiBlox into your existing workflows using the most popular SDKs.
Why Use SDKs with FortiBlox?
- Familiar Tools: Use the same libraries you already know
- Type Safety: Get full IntelliSense and type checking
- Battle-Tested: Leverage mature, well-documented libraries
- Framework Support: Seamless integration with Anchor, React, and more
- Enhanced Performance: Benefit from FortiBlox's optimized RPC infrastructure
Available SDK Guides
@solana/web3.js
JavaScript and TypeScript SDK for browser and Node.js applications
Solana Python
Python SDK with sync and async support for backend services
Solana Go
Go SDK for high-performance server applications
Anchor Framework
Complete framework for Solana program development and testing
Quick Start
All SDKs follow a similar pattern:
- Install the SDK for your language
- Configure the connection with FortiBlox endpoint
- Authenticate using your API key in request headers
- Build your application using standard SDK methods
FortiBlox Endpoint Configuration
Endpoint: https://nexus.fortiblox.com/rpc
Authentication: X-API-Key headerCommon Patterns
Connection Setup
All SDKs require configuring the RPC endpoint to point to FortiBlox:
// JavaScript/TypeScript
const connection = new Connection('https://nexus.fortiblox.com/rpc', {
httpHeaders: { 'X-API-Key': 'your-api-key' }
});# Python
client = Client('https://nexus.fortiblox.com/rpc',
extra_headers={'X-API-Key': 'your-api-key'})// Go
client := rpc.New(rpc.WithEndpoint("https://nexus.fortiblox.com/rpc"))
// API key in custom headersError Handling
FortiBlox returns standard Solana RPC error codes. Handle rate limits, network errors, and transaction failures appropriately in your application.
Best Practices
- Store API Keys Securely: Use environment variables, never commit keys
- Implement Retry Logic: Handle temporary network failures
- Monitor Rate Limits: Track your usage to avoid throttling
- Use WebSockets: For real-time updates and subscriptions
- Cache When Possible: Reduce unnecessary RPC calls
Language-Specific Features
| SDK | Async Support | WebSocket | TypeScript | Best For |
|---|---|---|---|---|
| @solana/web3.js | ✓ | ✓ | ✓ | Web apps, Node.js |
| Solana Python | ✓ | ✓ | - | Data analysis, bots |
| Solana Go | ✓ | ✓ | - | High-performance servers |
| Anchor | ✓ | ✓ | ✓ | Program development |
Next Steps
Choose your preferred SDK from the guides above to get started. Each guide includes:
- Complete installation instructions
- Authentication setup
- Working code examples
- Error handling patterns
- Performance optimization tips
Support
Need help integrating FortiBlox with your SDK?
- Documentation: Check the detailed guides for each SDK
- API Reference: FortiBlox API Documentation
- Community: Join our Discord for support
- Examples: Find complete projects in our GitHub repository