For Developers
Integration guides, code examples, and embeddable widgets
Quick Start
Get started with Celere in under 5 minutes. No authentication required during public beta.
- Choose your preferred language or framework
- Copy the example code below
- Make your first API call to https://api.celere.xyz
- Integrate fee predictions into your application
Code Examples
// Fetch current Bitcoin fees
async function getCurrentFees() {
const response = await fetch('https://api.celere.xyz/fees/current');
const data = await response.json();
console.log('Fastest fee:', data.mempool_based.fastest);
return data;
}
// Get 6-hour prediction
async function getPrediction(hours = 6) {
const response = await fetch(
`https://api.celere.xyz/fees/predict?hours_ahead=${hours}`
);
const prediction = await response.json();
console.log('Predicted fee:', prediction.predicted_fee_satvb);
return prediction;
}
// Find optimal transaction time
async function findOptimalTime() {
const predictions = [];
for (let hour = 1; hour <= 24; hour++) {
const pred = await fetch(
`https://api.celere.xyz/fees/predict?hours_ahead=${hour}`
);
predictions.push(await pred.json());
}
const optimal = predictions.reduce((min, curr) =>
curr.predicted_fee_satvb < min.predicted_fee_satvb ? curr : min
);
console.log(`Best time: +${optimal.hours_ahead}h at ${optimal.predicted_fee_satvb} sat/vB`);
return optimal;
}Wallet Integration
Show users optimal fee recommendations based on ML predictions. Update fee estimates in real-time.
Savings: 20-40% lower fees
Exchange Withdrawals
Batch withdrawals during predicted low-fee periods. Schedule automatic processing at optimal times.
Savings: 30-60% cost reduction
Payment Processors
Optimize transaction costs for high-volume merchants. Provide fee insights to customers.
Savings: 25-50% on processing
DeFi Applications
Time smart contract deployments and large transactions for minimal costs using AI predictions.
Savings: Save hundreds in gas
Need Help?
We are here to help you integrate Celere into your application.
API Reference
Complete API documentation with interactive examples
GitHub
Example projects and integration code
Community
Join discussions and get support