GetBdnFBTxnStateDiffStream

Name: GetBdnFBTxnStateDiffStream

The GetBdnFBTxnStateDiffStream stream provides low-latency access to transaction state diffs for newly produced Flashblocks on the Base network, parsed into protobuf format for immediate use. Transaction state diffs show the changes each transaction makes to chain state before finalization.

This is a real-time WS/gRPC, transaction state diff data stream.

Note: state diffs may arrive in a different order than transactions are executed; each response includes a blockPosition field for ordering.

This stream is available to Enterprise Elite and Ultra tier users.

Request

Method: GetBdnFBTxnStateDiffStream

Parameters

Parameter
Description
Instructions & Notes

addresses

Stream transaction traces that mention one of these addresses

[Optional] List of strings. If omitted, the stream includes state diffs of all transactions.

Example: WebSocket using CLI

wscat -H "Authorization: <AUTH_HEADER>" \
  -c wss://base.blxrbdn.com:5005/ws \
  --wait 1000 \
  --execute '{"jsonrpc": "2.0", "id": 1, "method": "subscribe", "params": [  "GetBdnFBTxnStateDiffStream", {} ]}'

Example: Test with grpcurl

Example: Golang

Response (txn state diff)

Full response details & format can be found here: https://github.com/bloXroute-Labs/base-streamer-proto/blob/develop/proto/streamer_api.proto

Last updated