API Endpoints
| Network | Endpoint | Protocol | Description |
|---|---|---|---|
| Alphanet | grpc.alphanet.thruput.org:443 | gRPC over HTTP/2 with TLS | Native gRPC endpoint for all platforms |
| Alphanet | https://grpc-web.alphanet.thruput.org | gRPC-Web | Browser-compatible gRPC endpoint |
Available Services
QueryService
Read-only operations for querying blockchain state, accounts, blocks, and transactions
CommandService
Write operations for submitting transactions and executing state-changing operations
StreamingService
Real-time streaming for account updates, block notifications, and transaction monitoring
Common Features
Protocol Buffers
All gRPC services use Protocol Buffers (proto3) for serialization. Proto definitions are available in the GitHub repository.Binary Serialization
gRPC uses Protocol Buffers for efficient binary serialization, resulting in payloads 2-10x smaller than JSON.Streaming Support
The StreamingService supports bidirectional streaming for real-time updates:Error Handling
gRPC uses status codes for error handling:OK(0) - SuccessNOT_FOUND(5) - Resource not foundINVALID_ARGUMENT(3) - Invalid request parametersINTERNAL(13) - Internal server errorUNAVAILABLE(14) - Service unavailable
Performance
Typical performance characteristics:- Request latency: <50ms
- Throughput: 1000+ requests/second per connection
- Payload size: 2-10x smaller than REST/JSON
Best Practices
Connection Pooling
Reuse gRPC channels and connections instead of creating new ones for each request
Timeouts
Set appropriate deadlines for requests to prevent hanging operations
Retry Logic
Implement exponential backoff for retries on transient failures
Health Checks
Monitor service health using gRPC health check protocol