On-chain gas price analytics and predictions on ProbeChain Rydberg Testnet (Chain ID: 8004).
Record historical gas prices, compute averages, predict future gas, find optimal transaction times.
recordGasPrice(blockNumber, baseFee, priorityFee)-- Record gas datagetAverageGas(fromBlock, toBlock)-- Get average gas over rangepredictGas(targetBlock)-- Predict gas for a future blockgetBestTime(maxGasWilling)-- Find cheapest hour of day
cp .env.example .env
npm install
npx hardhat compile
npx hardhat run scripts/deploy.ts --network rydberg- Chain ID: 8004
- EVM: London
- Solidity: 0.8.24