Back

DOCUMENTATION

Getting Started

Eluxion provides a comprehensive toolkit for Python developers to build cross-chain agents with ease. Connect to Solana and Base protocols to streamline your decentralized application interactions.

pip install nexaforge

Core Concepts

Agent Connectivity

Effortless connections between AI agents and Solana. Each connection allows for seamless communication, enabling agents to interact with decentralized applications effectively.

• Latency: Optimized for minimal delay

• Data size: Lightweight payloads for fast processing

• Retention: Configurable based on application needs

Cross-Chain Interactions

Streamlined interactions across multiple blockchain networks. Enable your Python agents to operate across different environments with reduced complexity.

• Supported chains: Solana, Base, and more

• Interaction methods: REST APIs and WebSockets

• Error handling: Robust mechanisms for fault tolerance

API Endpoints

GET/v1/agent/:id

Retrieve the current status and configuration of a specific agent.

POST/v1/agents/create

Create a new agent with specified parameters for cross-chain operations.

GET/v1/interactions/:agentId

Query the interaction history for a specific agent, including timestamps and results.

POST/v1/verify

Submit an interaction for verification against network consensus.

Integration Guide

Basic Connection

from nexaforge import EluxionClient

client = EluxionClient(
  api_key='YOUR_API_KEY',
  network='mainnet'
)

# Query agent status
status = client.get_agent_status('agent_id_123')
print(status)  # Outputs the agent's current status

Create and Subscribe

# Create an agent
agent = client.create_agent({
  name: 'MyAgent',
  chain: 'solana',
  filters: {'contract': 'your_contract_address'}
})

# Subscribe to agent interactions
interaction_stream = client.subscribe_to_interactions(agent.id)

@interaction_stream.on('interaction')
def handle_interaction(interaction):
    print('New interaction:', interaction.data)

@interaction_stream.on('error')
def handle_error(err):
    print('Stream error:', err)

Developer Notes

Rate Limits

Free tier: 100 interactions/minute. Staked tier (10K+ $NXFR): 1000 interactions/minute. Enterprise: Unlimited (custom $NXFR stake required).

Interaction Verification

All interactions include verification parameters. Client SDK verifies locally by default. Disable with verify_local: False to trust network consensus.

Error Handling

Network rejects invalid queries immediately. Failed interactions return verified: False with detailed rejection reason. Never trust unverified data.