Tokens
Manage token balances, track rewards, and handle token-related operations through the SolCognia API.
Token Balance
Get Token Balance
Retrieve current token balance and related information:
GET /api/v1/tokens/balanceResponse:
{
"balance": {
"available": 1250.75,
"pending": 45.25,
"staked": 500.00,
"total": 1796.00
},
"currency": "SOL",
"last_updated": "2024-01-21T10:30:00Z",
"wallet_address": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
}Get Balance History
Track balance changes over time:
Query Parameters:
period: Time period (1d, 7d, 30d, 90d, 1y)limit: Number of records to return (default: 100)offset: Number of records to skip (default: 0)
Response:
Token Transactions
List Transactions
Get detailed transaction history:
Query Parameters:
type: Filter by transaction type (earned, spent, staked, claimed)limit: Number of transactions to return (default: 20)offset: Number of transactions to skip (default: 0)start_date: Start date for filtering (ISO 8601)end_date: End date for filtering (ISO 8601)
Response:
Get Transaction Details
Retrieve detailed information about a specific transaction:
Response:
Claiming Rewards
Get Claimable Rewards
Check available rewards that can be claimed:
Response:
Claim Rewards
Claim available token rewards:
Request Body:
Response:
Get Claim Status
Check the status of a token claim:
Response:
Staking
Get Staking Information
View current staking status and available options:
Response:
Stake Tokens
Stake tokens in a staking pool:
Request Body:
Response:
Unstake Tokens
Withdraw staked tokens (if lock period has ended):
Request Body:
Reward Analytics
Get Earning Statistics
Analyze token earning patterns:
Response:
Get Reward Multipliers
View current reward multipliers and how to improve them:
Response:
Token Utility
Get Utility Options
View available ways to spend tokens:
Response:
Purchase Service
Spend tokens on platform services:
Request Body:
Response:
Error Handling
Insufficient Balance
Claim Not Available
Staking Lock Period
The Tokens API will be available with our Q4 2025 developer ecosystem launch.
Last updated