Skip to main content

Crate sentrix_grpc_wasm

Crate sentrix_grpc_wasm 

Source
Expand description

Rust + WASM gRPC-Web client for Sentrix Chain.

Compiles to WASM via wasm-pack build --target web and is usable from any browser dApp that wants typed gRPC-Web access to the chain’s sentrix.v1.Sentrix service. Extracted from sentrix-explorer-v2 so other browser apps can reuse the wrapper instead of re-implementing the tonic-web-wasm-client glue.

For non-WASM Rust services (validators, indexers, bridges) use sentrix-chain (https://github.com/Sentriscloud/sdk-rs) grpc feature instead — that one wraps @grpc/grpc-js-equivalent tonic over native HTTP/2.

Endpoints:

  • mainnet: https://grpc.sentrixchain.com
  • testnet: https://grpc-testnet.sentrixchain.com

Caddy at the edge transcodes between gRPC-Web and native gRPC via tonic-web so the same hostname serves both browser and server consumers.

Re-exports§

pub use client::hash_short;
pub use client::SentrixGrpcClient;

Modules§

client
Thin wrapper around the generated tonic client over a gRPC-Web transport.
pb