Transaction Stream Samples
Transaction Stream samples show the processor shape for a gRPC feed that streams historical and live transactions into indexers according to the Aptos API documentation.
A production processor has four durable parts:
- stream configuration and credentials;
- decoder/handler logic;
- idempotent writes keyed by transaction version or event key;
- checkpoint storage committed in the same transaction as processed data.
npx tsx chains/aptos/samples/transaction-stream/processor.ts