Skip to main content
Integrating Allium’s Kafka data streams into your systems allows you to access realtime blockchain data seamlessly with high throughput and low latency.

Python Example

This example demonstrates how to consume messages from Allium’s Kafka streams using Python.

Install the Confluent Library

Consumer Script

Create and execute the following script to start consuming messages:
Replace the placeholder values ("Your Bootstrap Servers", "Your Group ID", etc.) with the actual credentials provided by Allium.
Processing MessagesUncomment and customize the msg_process(msg) function call to implement your own message processing logic.