Real-time fee estimation for Stacks blockchain
Stacks users need to hold STX for transaction fees, but understanding how much STX to keep is non-obvious. Zerlin removes
cd backend
pnpm install
pnpm start:devSwagger UI: http://localhost:3000/api
cd contract
pnpm test # Run tests
clarinet deployments generate --devnet # Generate deployment planEstimate transaction fee
Request:
{
"type": "transfer",
"payload": {
"amount": 1000000,
"recipient": "SP2X0TZ59D5SZ8ACQ..."
}
}Response:
{
"transactionType": "transfer",
"estimatedFee": {
"stx": "0.000180",
"microStx": 180,
"usd": "0.00",
"btc": 0
},
"breakdown": {
"baseFee": 180,
"executionCost": 0,
"dataSize": 180
},
"networkStatus": {
"congestion": "low",
"averageFee": 1,
"recommendedBuffer": 360
}
}Get current network status
Get recent fee estimates (last 50)
cd contract
pnpm testResults: 88 passing tests ✅
cd backend
pnpm testcd contract
clarinet deployments generate --devnet
clarinet deployments apply -p deployments/default.devnet-plan.yamlclarinet deployments generate --testnet
clarinet deployments apply -p deployments/default.testnet-plan.yaml- Add back batch operations
- Implement WebSocket for real-time updates
- Build Next.js frontend
- Integrate wallet connections
- Add price feed for USD/BTC conversion
- API integration guide
- Contract deployment guide
- Frontend integration examples
- Discord
- Email: [email protected]
Built with support from the Stacks Foundation and the Stacks community.