Skip to main content
Version: 1.16.1

Type Alias: SuiGrpcChainClientOptions

SuiGrpcChainClientOptions = { baseUrl?: string; client?: SuiGrpcClient; descriptorNegativeTtlMs?: number; fetch?: typeof globalThis.fetch; network?: "mainnet" | "testnet" | "devnet" | "localnet"; transport?: NonNullable<ConstructorParameters<typeof SuiGrpcClient>[0]["transport"]>; }

Defined in: sui/grpc.ts:63

Options for reaching a gRPC endpoint: URL, custom transport, or client.

Properties​

baseUrl?​

optional baseUrl?: string

Defined in: sui/grpc.ts:65

gRPC-Web endpoint base URL, e.g. https://fullnode.testnet.sui.io:443.


client?​

optional client?: SuiGrpcClient

Defined in: sui/grpc.ts:69

Ready-made SuiGrpcClient; wins over both.


descriptorNegativeTtlMs?​

optional descriptorNegativeTtlMs?: number

Defined in: sui/grpc.ts:79

How long a FAILED package-descriptor fetch blocks retries, per package (bounded negative cache — transient RPC failures recover on the next render instead of poisoning the package for the client's life). Default 5s; aligns with the SDK's default poll interval.


fetch?​

optional fetch?: typeof globalThis.fetch

Defined in: sui/grpc.ts:72

Rate-limited / profiled fetch for the built-in gRPC-Web transport.


network?​

optional network?: "mainnet" | "testnet" | "devnet" | "localnet"

Defined in: sui/grpc.ts:70


transport?​

optional transport?: NonNullable<ConstructorParameters<typeof SuiGrpcClient>[0]["transport"]>

Defined in: sui/grpc.ts:67

Caller-built RpcTransport (native gRPC etc.); wins over baseUrl.