Developers
Get Started
Network Interaction

Network Interaction

Learn how to interact with Allora Network: query data, manage transactions, and work with prediction topics.

Gas Management

Allora uses an EIP-1559-like fee structure. Always use this transaction format:

allorad tx emissions [command] \
  --from <account-name> \
  --node <rpc-url> \
  --chain-id allora-testnet-1 \
  --keyring-backend test \
  --gas 130206 \
  --gas-adjustment 1.2 \
  --gas-prices 10uallo

Key differences from other Cosmos chains:

  • Use --gas-prices 10uallo (not --fees)
  • Use specific --gas amount (not --gas auto)

fees Xuallo becomes gas-prices 10uallo

Available Topics

Current prediction topics on Allora Testnet:

Topic IDMetadataDefault Arg
1ETH 10min PredictionETH
2ETH 24h PredictionETH
3BTC 10min PredictionBTC
4BTC 24h PredictionBTC
5SOL 10min PredictionSOL
6SOL 24h PredictionSOL
7ETH 20min PredictionETH
8BNB 20min PredictionBNB
9ARB 20min PredictionARB
10Memecoin 1h PredictionTOKEN_FROM_API
11US Presidential Election 2024 - Winning PartyR
13ETH 5min PredictionETH
14BTC 5min PredictionBTC
15ETH 5min Volatility PredictionETH
17ETH 8h PredictionETH
18BTC 8h PredictionBTC
37SOL/USD - 5min Price PredictionSOL
38SOL/USD - 8h Price PredictionSOL
41ETH/USD - 8h Price PredictionETH
42BTC/USD - 8h Price PredictionBTC
475 min BTC Price PredictionBTC
506h BTC Volatility PredictionBTC
561 hour BERA/USD Log-Return PredictionBERA
588 hour SOL/USD Log-Return PredictionSOL
6024 hour XAU/USD Log-Return PredictionXAU
611 day BTC/USD Log-Return PredictionBTC
621 day SOL/USD Log-Return PredictionSOL
631 day ETH/USD Log-Return PredictionETH
⚠️

Topic ordering varies between deployments. Always verify topic details before use.

Querying Network Data

Use these commands to retrieve network information:

Get topic details:

allorad query emissions topic <topic-id> \
  --node https://allora-rpc.testnet.allora.network/

Example:

allorad query emissions topic 1 \
  --node https://allora-rpc.testnet.allora.network/

Common Operations

Query an Inference

# Get latest prediction for ETH (topic 1)
allorad query emissions latest-available-network-inferences 1 \
  --node https://allora-rpc.testnet.allora.network/

Delegate Stake to Reputer

allorad tx emissions delegate-stake <reputer-address> <amount>uallo \
  --from <your-key-name> \
  --node https://allora-rpc.testnet.allora.network/ \
  --chain-id allora-testnet-1 \
  --gas 130206 \
  --gas-adjustment 1.2 \
  --gas-prices 10uallo

Check Your Balance

allorad query bank balances <your-address> \
  --node https://allora-rpc.testnet.allora.network/

Network Endpoints

Testnet:

  • RPC: https://allora-rpc.testnet.allora.network/
  • Alternative RPC: https://rpc.ankr.com/allora_testnet
  • Chain ID: allora-testnet-1

Best Practices

  • Always specify gas explicitly - Don't use --gas auto
  • Use consistent gas prices - 10uallo is recommended
  • Verify topic IDs - Topics may vary between networks
  • Check network status - Ensure RPC endpoints are accessible
  • Monitor gas usage - Adjust gas amounts based on transaction complexity

Troubleshooting

Transaction Failed:

  • Check gas settings (use explicit --gas and --gas-prices)
  • Verify sufficient wallet balance
  • Confirm correct chain ID and RPC URL

Query Timeout:

  • Try alternative RPC endpoint
  • Check network connectivity
  • Verify topic ID exists

Next Steps