HTTP Example
The TX Stream API is a streaming service and does not expose a direct HTTP equivalent.
If you need real-time transaction monitoring, use the TX Stream gRPC service.
If you need transaction submission, use the main NextBlock HTTP, gRPC, or QUIC APIs instead.
Overview
Since the TX Stream API is gRPC-only, an HTTP-based trading bot integration usually looks like this:
Use TX Stream gRPC for real-time monitoring
Use the main HTTP API for transaction submission and tip floor monitoring
Recommendation
For trading bot applications that need fast transaction detection for sniping new DEX launches, the gRPC TX Stream API is strongly recommended due to its real-time streaming capabilities.
Use gRPC TX Stream API (Recommended)
For trading bot transaction monitoring, use the TX Stream gRPC API with one of these examples:
Go TX Stream Example - Complete Go implementation
TypeScript TX Stream Example - Node.js implementation
Rust TX Stream Example - Rust with Tonic
There is currently no Python TX Stream example in this docs section.
HTTP API Integration
You can use the existing NextBlock HTTP API endpoints for transaction submission:
Available HTTP Endpoints
For transaction submission and tip floor data:
Frankfurt:
https://frankfurt.nextblock.ioAmsterdam:
https://amsterdam.nextblock.ioLondon:
https://london.nextblock.ioSingapore:
https://singapore.nextblock.ioTokyo:
https://tokyo.nextblock.ioNew York:
https://ny.nextblock.ioSalt Lake City:
https://slc.nextblock.ioDublin:
https://dublin.nextblock.ioVilnius:
https://vilnius.nextblock.io
Best Practices
Use TX Stream gRPC for real-time monitoring: this is the actual streaming interface
Use HTTP, gRPC, or QUIC for submission: pick the main API transport that matches your needs
Monitor tip floors: use the tip floor endpoint to optimize transaction tips
Choose the closest endpoint: lower network latency generally improves performance
Handle rate limits and retries: implement appropriate client-side error handling
Last updated