⛽Gas
Endpoints and responses for gas prices
Current Gas Price
GET
https://api.pepeanalytics.com/v1/gas/current
Gets the current gas price using Owlracle.
{
data: {
timestamp: string;
lastBlock: number;
avgTime: number;
avgTx: number;
avgGas: number;
speeds: [
{
acceptance: number;
maxFeePerGas: number;
maxPriorityFeePerGas: number;
baseFee: number;
estimatedFee: number;
}
...
]
}
message: string
isError: boolean
}
Historical Gas Price
GET
https://api.pepeanalytics.com/v1/gas/history
Gets the historical gas price with a default set to 36 hours back.
Query Parameters
Name
Type
Description
network
String
Default is 'eth'
interval
String
Frequency of candles (default: 30m). Available values: 10m, 30m, 1h, 2h, 4h or 1d
days_ago
String
How many days ago to trace back
{
data: [
{
gasPrice: {
open: number
close: number
low: number
high: number
},
avgGas: number
timestamp: Date
samples: number
}
...
]
message: string
isError: boolean
}
Last updated