Skip to content

Commit 8507774

Browse files
committed
add eth_call flashblocks support; update reorg FAQ
1 parent 1b68c11 commit 8507774

2 files changed

Lines changed: 62 additions & 5 deletions

File tree

docs/base-chain/flashblocks/apps.mdx

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,64 @@ curl https://sepolia-preconf.base.org -X POST -H "Content-Type: application/json
114114
}
115115
```
116116

117+
#### eth_call
118+
119+
Use the `pending` tag to execute a smart contract call against the latest Flashblock:
120+
```
121+
curl https://sepolia-preconf.base.org -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_call","params":[{"to":"0x...","data":"0x..."},"pending"],"id":1}'
122+
```
123+
124+
**Example Response**
125+
```
126+
{
127+
"jsonrpc": "2.0",
128+
"id": 1,
129+
"result": "0x0000000000000000000000000000000000000000000000000000000000000001"
130+
}
131+
```
132+
133+
#### eth_simulateV1
134+
135+
Use the `pending` tag to simulate transactions against the latest Flashblock:
136+
```
137+
curl https://sepolia-preconf.base.org -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_simulateV1","params":[{"blockStateCalls":[{"calls":[{"to":"0x...","data":"0x..."}],"stateOverrides":{}}],"traceTransfers":true,"validation":true},"pending"],"id":1}'
138+
```
139+
140+
**Example Response**
141+
```
142+
{
143+
"jsonrpc": "2.0",
144+
"id": 1,
145+
"result": [
146+
{
147+
"calls": [
148+
{
149+
"status": "0x1",
150+
"gasUsed": "0x5208",
151+
"returnData": "0x"
152+
}
153+
]
154+
}
155+
]
156+
}
157+
```
158+
159+
#### eth_estimateGas
160+
161+
Use the `pending` tag to estimate gas against the latest Flashblock:
162+
```
163+
curl https://sepolia-preconf.base.org -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_estimateGas","params":[{"to":"0x...","data":"0x..."},"pending"],"id":1}'
164+
```
165+
166+
**Example Response**
167+
```
168+
{
169+
"jsonrpc": "2.0",
170+
"id": 1,
171+
"result": "0x5208"
172+
}
173+
```
174+
117175
### Libraries
118176

119177
You will need to use a Flashblocks-aware RPC endpoint to use Flashblocks with the following libraries:

docs/base-chain/flashblocks/docs.mdx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Unfortunately there's no way to guarantee which flashblock a transaction lands i
2626

2727
### How frequently do flashblocks reorg happen?
2828

29-
Flashblocks reorg currently happens once approx. every ~300 blocks. You can also view the stats by visiting https://www.base.org/stats (the flashblocks section at the bottom).
29+
Flashblocks reorgs on Base Mainnet is currently effectively zero, with only rare exceptions. We are committed to maintaining a reorg rate below 0.01% going forward. You can check the latest metrics in the Flashblocks section at https://base.org/stats
3030

3131
### What does it mean when a flashblock is reorged?
3232

@@ -64,10 +64,9 @@ Currently the ones that have flashblocks enabled are:
6464
- eth_getTransactionReceipt
6565
- eth_getTransactionByHash (with pending tag)
6666
- eth_getTransactionCount (with pending tag)
67-
68-
### What about eth_call, eth_estimate, etc?
69-
70-
We will support these soon, ETA at the end of Q3 2025.
67+
- eth_call (with pending tag)
68+
- eth_simulateV1 (with pending tag)
69+
- eth_estimateGas (with pending tag)
7170

7271
## Node
7372

0 commit comments

Comments
 (0)