Type Alias: SuiGrpcChainClientOptions
SuiGrpcChainClientOptions = {
baseUrl?:string;client?:SuiGrpcClient;descriptorNegativeTtlMs?:number;fetch?: typeofglobalThis.fetch;network?:"mainnet"|"testnet"|"devnet"|"localnet";transport?:NonNullable<ConstructorParameters<typeofSuiGrpcClient>[0]["transport"]>; }
Defined in: sui/grpc.ts:63
Options for reaching a gRPC endpoint: URL, custom transport, or client.
Properties
baseUrl?
optionalbaseUrl?:string
Defined in: sui/grpc.ts:65
gRPC-Web endpoint base URL, e.g. https://fullnode.testnet.sui.io:443.
client?
optionalclient?:SuiGrpcClient
Defined in: sui/grpc.ts:69
Ready-made SuiGrpcClient; wins over both.
descriptorNegativeTtlMs?
optionaldescriptorNegativeTtlMs?: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?
optionalfetch?: typeofglobalThis.fetch
Defined in: sui/grpc.ts:72
Rate-limited / profiled fetch for the built-in gRPC-Web transport.
network?
optionalnetwork?:"mainnet"|"testnet"|"devnet"|"localnet"
Defined in: sui/grpc.ts:70
transport?
optionaltransport?:NonNullable<ConstructorParameters<typeofSuiGrpcClient>[0]["transport"]>
Defined in: sui/grpc.ts:67
Caller-built RpcTransport (native gRPC etc.); wins over baseUrl.