Flashblocks
Flashblocks lets you receive early transaction confirmation signals without waiting for the next block to be produced. This enables real-time responsiveness for apps that require fast user feedback.
Last updated
curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_call",
"params": [{"to": "0x...", "data": "0x..."}, "pending"],
"id": 1
}'{
"jsonrpc": "2.0",
"id": 1,
"result": "0x0000000000000000000000000000000000000000000000000000000000000001"
}curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_estimateGas",
"params": [{"to": "0x...", "data": "0x..."},"pending"],
"id": 1
}'{
"jsonrpc": "2.0",
"id": 1,
"result": "0x9425"
}curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBalance",
"params": ["0x...", "pending"],
"id": 1
}'{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1234"
}curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_getBlockByNumber",
"params": ["pending", true],
"id": 1
}'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"number": "0x1234",
"hash": "0x..", // Even for the same block, the hash may change if the set of preconfirmed transactions changes
"transactions": [...], // All preconfirmed transactions included in the flashblock
"stateRoot": "0x...",
"gasUsed": "0x...",
"timestamp": "0x..."
}
}curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_getLogs",
"params": [{"fromBlock": "latest", "toBlock": "pending", "address": "0x...", "topics": ["0x..."]}],
"id": 1
}'{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"address": "0x...",
"topics": ["0x..."],
"data": "0x...",
"blockNumber": "0x1234",
"transactionHash": "0x...",
"transactionIndex": "0x0",
"blockHash": "0x...",
"logIndex": "0x0",
"removed": false
}
]
}curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": ["0x...", "pending"],
"id": 1
}'{
"jsonrpc": "2.0",
"id": 1,
"result": "0x12"
}curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionByHash",
"params": ["0x..."],
"id": 1
}'{
"jsonrpc": "2.0",
"result": {
"blockHash": "0x...",
"blockNumber": "0x1234",
"chainId": "0x164ce",
"nonce": "0x23",
"transactionIndex": "0x3",
"type": "0x2",
},
"id": 1
}curl https://sepolia-rpc-flashblocks.giwa.io \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionReceipt",
"params": ["0x..."],
"id": 1
}'{
"jsonrpc": "2.0",
"result": {
"transactionHash": "0x...",
"blockNumber": "0x1234",
"status": "0x1"
},
"id": 1
}curl https://sepolia-rpc-flashblocks.giwa.io \
-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
}'{
"jsonrpc": "2.0",
"result": [
{
"calls": [
{
"status": "0x1",
"gasUsed": "0x1234",
"returnData": "0x"
}
]
}
],
"id": 1
}