Claude Code skills for building applications with the Krystal Cloud API - a REST API for accessing DeFi pool and liquidity position data across multiple blockchain networks.
/plugin marketplace add KrystalDeFi/claude-code-skills
/plugin install build-with-krystal-cloud@KrystalDeFi/claude-code-skills
To add the marketplace locally (e.g., for testing or development), navigate to the parent directory of this repository:
cd /path/to/parent # e.g., if repo is at ~/projects/claude-code-skills, be in ~/projects
/plugin marketplace add ./claude-code-skills
Provides guidance for integrating with the Krystal Cloud API, including:
- API authentication - Using KC-APIKey header
- Credit system - Understanding API credit consumption
- Pool endpoints - Fetching pool data, historical metrics, transactions, tick data
- Position endpoints - Tracking LP positions, performance, transaction history
- Balance endpoints - Getting wallet token balances
- Strategy endpoints - Managing automated liquidity strategies
- Code examples - TypeScript and Python examples
Trigger phrases:
- "integrate with Krystal Cloud API"
- "fetch DeFi pool data"
- "get liquidity positions"
- "query wallet balances"
- "build with Krystal API"
- "track LP positions"
Base URL: https://cloud-api.krystal.app
Authentication: All endpoints (except chains/protocols) require the KC-APIKey header.
Supported Chains:
- Ethereum (1)
- BNB Smart Chain (56)
- Polygon (137)
- Arbitrum (42161)
- Optimism (10)
- Base (8453)
- Ronin (2020)
Supported Protocols:
- Uniswap V2, V3, V4
- PancakeSwap V2, V3
- Katana (Ronin)
- And more
# Get supported chains (free)
curl https://cloud-api.krystal.app/v1/chains
# Get top pools on Ethereum
curl -H "KC-APIKey: YOUR_API_KEY" \
"https://cloud-api.krystal.app/v1/pools?chainId=1&sortBy=1&limit=10"
# Get positions for a wallet
curl -H "KC-APIKey: YOUR_API_KEY" \
"https://cloud-api.krystal.app/v1/positions?wallet=0x..."- Krystal Cloud Portal - Get your API key
- API Documentation - Swagger docs
- Krystal App - Main application
MIT