GetBdnBlockStream
Last updated
Last updated
The GetBdnBlockStream
stream provides low-latency access to new blocks as they’re produced on the Base network. Note that there is a low chance that this stream may include blocks that will not be accepted on chain.
This is a real-time gRPC stream delivering full block headers and bodies (including transactions), intended for searchers, indexers, and other latency-sensitive applications.
Go 1.24.1+
op-geth
installed (pay attention to use it instread of go-ethereum
)
gRPC installed (google.golang.org/grpc
)
.proto
file:
No TLS required
Authorization required via authorization
header
Set your authorization header via environment variable:
In gRPC, this will be passed as:
This will return raw stream data — you can pretty-print it with jq
.
Sample output:
Stream closes unexpectedly
Expired token, gRPC connection limits, network/firewall issues
Unmarshal errors
Mismatched Go or op-geth
dependency
No output
Ensure proper env variables and endpoint configuration
🔗 You can get the .proto
file
🔗 You can access the Base streamer client