Defi Integrations
Allora Integration
Learn how to use Allora price inference and topic functionality
Solana Agent Kit provides comprehensive integration with Allora’s API for accessing price inferences and topics. The integration supports both mainnet and testnet environments with configurable API settings.
Key Features
- Price inference for multiple tokens and timeframes
- Topic management and retrieval
- Inference data by topic ID
- LangChain tool integration
- Configurable network environment
Configuration
The Allora integration uses the following configuration parameters:
Basic Usage
Getting All Topics
Getting Inference by Topic ID
Getting Price Inference
LangChain Integration
Solana Agent Kit provides LangChain tools for automated Allora data retrieval:
Get All Topics Tool
Get Inference by Topic ID Tool
Get Price Inference Tool
Example Prompts
For LangChain AI tools, here are example prompts:
Getting Topics
Getting Inferences
Important Notes
-
API Key Configuration
- Default API key provided but recommended to use your own
- Can be configured via ALLORA_API_KEY environment variable
-
Network Environment
- Supports both mainnet and testnet
- Configured via ALLORA_NETWORK environment variable
- Defaults to testnet if not specified
-
API Response Handling
- All methods return structured responses
- Error handling included for network and API issues
- Status and message fields in all responses
Error Handling
Technical Details
Available Timeframes
Supported Token Types
Default Values
Was this page helpful?