Skip to content

Commit

Permalink
feat(block native): v2 gas api format
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha authored Aug 12, 2022
1 parent 16edb27 commit 799c13b
Showing 1 changed file with 96 additions and 0 deletions.
96 changes: 96 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,102 @@ Does this mean that we always save gas when using transaction’s with access li

> Note: This is powered by Blocknative's global mempool data platform
> v2 Blocknative
```jsonc
{
"system": "ethereum",
"network": "main",
"unit": "gwei",
"maxPrice": 50,
"currentBlockNumber": 15326495,
"msSinceLastBlock": 40251,
"blockPrices": [
{
"blockNumber": 15326496,
"estimatedTransactionCount": 322,
"baseFeePerGas": 11.075381056,
"estimatedPrices": [
{
"confidence": 99,
"price": 13,
"maxPriorityFeePerGas": 2.49,
"maxFeePerGas": 22.45
},
{
"confidence": 95,
"price": 13,
"maxPriorityFeePerGas": 2.13,
"maxFeePerGas": 22.09
},
{
"confidence": 90,
"price": 12,
"maxPriorityFeePerGas": 1.92,
"maxFeePerGas": 21.88
},
{
"confidence": 80,
"price": 12,
"maxPriorityFeePerGas": 1.68,
"maxFeePerGas": 21.64
},
{
"confidence": 70,
"price": 12,
"maxPriorityFeePerGas": 1.58,
"maxFeePerGas": 21.54
}
]
}
],
"estimatedBaseFees": [
{
"pending+1": [
{
"confidence": 99,
"baseFee": 12.46
}
]
},
{
"pending+2": [
{
"confidence": 99,
"baseFee": 14.02
}
]
},
{
"pending+3": [
{
"confidence": 99,
"baseFee": 15.77
}
]
},
{
"pending+4": [
{
"confidence": 99,
"baseFee": 17.75
}
]
},
{
"pending+5": [
{
"confidence": 99,
"baseFee": 19.96
}
]
}
]
}
```

> v1 Blocknative
```json
{
"system": "ethereum",
Expand Down

0 comments on commit 799c13b

Please sign in to comment.