Sui blockchain development tools guide. Use TypeScript SDK, Rust SDK, Python pysui, Go SDK, and JSON-RPC API for building Sui applications with Chainstack.
Sui nodes on Chainstack support gRPC for high-performance access. gRPC uses HTTP/2 and Protocol Buffers for efficient binary serialization, making it ideal for streaming data and high-throughput applications.
grpcurl -H "x-token: YOUR_X_TOKEN" \ sui-mainnet.core.chainstack.com:443 \ list
import grpc# Create channel with TLSchannel = grpc.secure_channel( 'sui-mainnet.core.chainstack.com:443', grpc.ssl_channel_credentials())# Add x-token to metadata for all callsmetadata = [('x-token', 'YOUR_X_TOKEN')]# Use the channel with your gRPC stubs# Example: stub = SuiServiceStub(channel)# response = stub.SomeMethod(request, metadata=metadata)
const grpc = require('@grpc/grpc-js');// Create credentials with TLSconst credentials = grpc.credentials.createSsl();// Create channelconst channel = new grpc.Channel( 'sui-mainnet.core.chainstack.com:443', credentials);// Add x-token to metadata for callsconst metadata = new grpc.Metadata();metadata.add('x-token', 'YOUR_X_TOKEN');// Use with your gRPC client
package mainimport ( "google.golang.org/grpc" "google.golang.org/grpc/credentials" "google.golang.org/grpc/metadata" "context")func main() { // Create TLS credentials creds := credentials.NewTLS(nil) // Connect to gRPC endpoint conn, err := grpc.Dial( "sui-mainnet.core.chainstack.com:443", grpc.WithTransportCredentials(creds), ) if err != nil { panic(err) } defer conn.Close() // Add x-token to context ctx := metadata.AppendToOutgoingContext( context.Background(), "x-token", "YOUR_X_TOKEN", ) // Use ctx with your gRPC calls}
Find your gRPC endpoint and x-token in the Chainstack console under your Sui node’s Access and credentials section.