Skip to content

Sui Blockchain reveals the complete beta version of its gRPC support integration.

Sui Blockchain Introduces Beta gRPC Support for Full Nodes, Marking a Significant Step in Modernizing Blockchain Data Access

Sui Blockchain Shows Off Complete Beta for gRPC Integration
Sui Blockchain Shows Off Complete Beta for gRPC Integration

Sui Blockchain reveals the complete beta version of its gRPC support integration.

Sui Blockchain has taken a significant step forward in its evolution, announcing the beta release of gRPC support for its Full Nodes. This move marks a foundational milestone, positioning the platform to better support future decentralized applications and services within the Web3 ecosystem.

Why gRPC?

The move to gRPC enables developers to build more responsive and efficient applications. Compared to JSON-RPC, gRPC offers superior capabilities in terms of lower latency, more expressive semantics, and improved scalability.

Lower Latency and Higher Throughput

gRPC uses HTTP/2 and Protocol Buffers (Protobuf) for binary serialization, which reduces payload sizes by up to 60% compared to JSON. This results in up to 7x faster data transmission in benchmarks, crucial for blockchain apps that require real-time responsiveness.

Strong Typing and Client Generation

gRPC supports strongly typed APIs and automatic client generation for multiple languages (Rust, Go, TypeScript, Python, etc.), improving developer productivity and reducing errors.

Real-time Streaming and Multiplexing

Unlike JSON-RPC's request-response model, gRPC supports bidirectional streaming over a single connection, enabling efficient real-time data flows such as live transaction tracking and account state updates.

Cost and Resource Efficiency

The smaller payloads and multiplexing reduce bandwidth usage and infrastructure costs, enabling innovations like scalable cloud-native blockchain services with up to 40%-50% cost savings in some cases.

Sui's gRPC Implementation

Specifically, Sui Blockchain is implementing gRPC to replace legacy JSON-RPC as its full node API to provide:

  • Fast, structured access to on-chain data
  • A separation of raw data (served by gRPC) from rich, derived data (served by GraphQL)
  • A modern, scalable data serving layer that supports real-time streaming alongside batch APIs

This implementation is designed to phase out the older JSON-RPC gradually, marking gRPC as the canonical, more scalable, and secure API integration method for Sui.

The Benefits of gRPC for Sui Blockchain

In summary, gRPC provides Sui Blockchain with a high-performance, developer-friendly, and scalable RPC framework that enables efficient, real-time blockchain data access and improved infrastructure cost management, greatly enhancing the developer experience compared to traditional JSON-RPC.

SubscriptionService and Real-time Updates

SubscriptionService enables server-side streaming APIs, allowing real-time on-chain event subscriptions. For use cases that depend on instant updates, such as trading platforms and analytics dashboards, this feature is particularly valuable.

Supported Services

The beta release includes services like MovePackageService, TransactionExecutionService, SignatureVerificationService, and SubscriptionService.

Encouraging Developer Transition

Developers are encouraged to transition their infrastructure, and Sui has provided detailed documentation and proto files on GitHub to support this migration.

A New Era for Blockchain Data Infrastructure

Sui's roadmap for reshaping blockchain data infrastructure includes a deliberate separation between raw and derived data, parallel support for batch and streaming APIs, and the development of a next-generation indexer framework for Web3 applications.

The gRPC support is expected to replace JSON-RPC in the long term, as Sui lays the groundwork for a next-generation indexer framework to meet the demands of increasingly complex Web3 applications.

[1] Grpc.io [2] Sui.org [3] Web.dev

Read also:

Latest