Quickstart
Get up and running with Axira AI in just a few minutes
1Create an Account
First, you'll need a Solana wallet to authenticate with Axira AI. If you don't have one, install Phantom or Solflare.
2Authenticate
Use the wallet authentication endpoint to sign in and receive your session token.
POST /api/auth/wallet
const wallet = "your-wallet-address";
const signature = "your-signature";
const response = await axios.post('/api/auth/wallet', {
wallet,
signature,
message: 'Sign in to Axira AI'
});
console.log('Authenticated:', response.data);3Create Your First Project
Navigate to the dashboard and create a new project to start analyzing cryptocurrency data and narratives.
4Use the APIs
Start making API calls to fetch data and build your application.
Installation
npm install axios # or pnpm add axios
Authenticate with Wallet
import axios from 'axios';
const wallet = "your-wallet-address";
const signature = "your-signature";
const response = await axios.post('/api/auth/wallet', {
wallet,
signature,
message: 'Sign in to Axira AI'
});
console.log('Authenticated:', response.data);Fetch Token Data
const response = await axios.get('/api/coingecko/token', {
params: {
tokenId: 'bitcoin'
}
});
const tokenData = response.data;
console.log('Token:', tokenData);Get Market Overview
const response = await axios.get('/api/gemini/overview', {
params: {
query: 'bitcoin market analysis'
}
});
const analysis = response.data;
console.log('Analysis:', analysis);Next Steps
- • Read the authentication guide for more details
- • Explore the API reference for all endpoints
- • Check out code examples for common patterns