FortiBlox LogoFortiBlox Docs
NexusSDKs

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

Quick Start

All SDKs follow a similar pattern:

  1. Install the SDK for your language
  2. Configure the connection with FortiBlox endpoint
  3. Authenticate using your API key in request headers
  4. Build your application using standard SDK methods

FortiBlox Endpoint Configuration

Endpoint: https://nexus.fortiblox.com/rpc
Authentication: X-API-Key header

Common 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 headers

Error Handling

FortiBlox returns standard Solana RPC error codes. Handle rate limits, network errors, and transaction failures appropriately in your application.

Best Practices

  1. Store API Keys Securely: Use environment variables, never commit keys
  2. Implement Retry Logic: Handle temporary network failures
  3. Monitor Rate Limits: Track your usage to avoid throttling
  4. Use WebSockets: For real-time updates and subscriptions
  5. Cache When Possible: Reduce unnecessary RPC calls

Language-Specific Features

SDKAsync SupportWebSocketTypeScriptBest For
@solana/web3.jsWeb apps, Node.js
Solana Python-Data analysis, bots
Solana Go-High-performance servers
AnchorProgram 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