getSuiClient
Retrieves a Sui gRPC client (SuiGrpcClient from @mysten/sui/grpc) from a wallet account, allowing you to interact with the Sui blockchain.
The Sui RPC URL configured for the wallet’s network must serve the Sui gRPC
API. JSON-RPC endpoints are not supported.
Usage
Parameters
Returns
Promise<SuiClient> - A promise that resolves to a SuiGrpcClient instance from @mysten/sui/grpc.
Errors
React
Related functions
- isSuiWalletAccount - Check if a wallet account is a Sui account
- signAndExecuteTransaction - Sign and execute a transaction