Unichain API Integration
🚀 Quick Start
Connect to Unichain in under 5 minutes with Grove's enterprise-grade infrastructure.
Overview
Unichain is Uniswap's high-performance L2 blockchain designed for decentralized finance and trading. Built as an EVM-compatible chain, Unichain provides fast, cost-effective transactions for DeFi applications. Grove delivers enterprise-grade Unichain RPC access with guaranteed uptime, global edge network, and developer-first tooling.
Why Choose Grove for Unichain?
- ⚡ Ultra-fast response times - Sub-300ms latency globally
- 📈 Unlimited RPS and Unlimited relays - From Prototype to Production seamlessly
- 🌍 Global edge network - 99.9% uptime guarantee
- 💡 Developer-first - Comprehensive docs and support
Network Information
| Property | Value |
|---|---|
| Network Name | Unichain |
| Native Token | ETH |
| EVM Chain ID | 1301 |
| Pocket Service ID | unichain |
| Block Explorer | Unichain Explorer |
| Official Documentation | Unichain Docs |
Supported APIs
| API | Documentation |
|---|---|
| JSON-RPC | view spec |
Integration Examples
Quick Setup
// Using ethers.js (for EVM-compatible chains)
import { JsonRpcProvider } from 'ethers';
const provider = new JsonRpcProvider('YOUR_GROVE_UNICHAIN_ENDPOINT');
// Get latest block
const blockNumber = await provider.getBlockNumber();
console.log('Latest block:', blockNumber);
// Get account balance
const balance = await provider.getBalance('WALLET_ADDRESS');
console.log('Balance:', balance.toString());
Smart Contract Interaction
// Contract interaction example
const contractABI = [...]; // Your contract ABI
const contractAddress = '0x...'; // Your contract address
const contract = new Contract(contractAddress, contractABI, provider);
// Read contract data
const result = await contract.someReadMethod();
// Write to contract (requires signer)
const signer = provider.getSigner();
const contractWithSigner = contract.connect(signer);
const tx = await contractWithSigner.someWriteMethod(param1, param2);
await tx.wait(); // Wait for confirmation
DeFi Integration
// Example: Interacting with Uniswap V4 on Unichain
import { Contract } from 'ethers';
// Uniswap V4 Pool Manager (example address)
const poolManagerAddress = '0x...';
const poolManagerABI = [...];
const poolManager = new Contract(poolManagerAddress, poolManagerABI, provider);
// Get pool information
const poolKey = {
currency0: '0x...', // Token A address
currency1: '0x...', // Token B address
fee: 3000, // 0.3% fee tier
tickSpacing: 60,
hooks: '0x0000000000000000000000000000000000000000'
};
const poolInfo = await poolManager.getPool(poolKey);
console.log('Pool info:', poolInfo);
Performance & Reliability
Grove's Unichain infrastructure delivers:
- Response Time: < 100ms average globally
- Uptime: 99.9% SLA guarantee
- Rate Limits: Unlimited requests/second on all plans
- Global Coverage: Backed by the Unstoppable Pocket Network
Developer Resources
📚 Essential Links
- Grove API Documentation
- Unichain Official Docs
- Uniswap Documentation
- Network Status
- Developer Discord
🛠️ Tools & SDKs
💬 Community & Support
Getting Started
- Sign up for a Grove account at portal.grove.city
- Create a new application and get your API key
- Configure your endpoints with Unichain
- Start building with our comprehensive documentation
Need help? Our developer success team is here to help you integrate Unichain quickly and efficiently. Contact us or join our Discord community.