Functions
SuiExtension
method
sui
module
Provides methods to create Sui client and signer for Sui wallets.
The reference types below are simplified for the sake of readability. See the
type specification for details.
Property | Type | Description |
---|---|---|
getSigner | (props: { wallet: Wallet }) => ISuiSigner | Returns an object that can be used to prompt the user for message and transaction signing. |
getNetworkUrl | (props: { walletId: string }) => Promise<string> | Returns the Sui fullnode URL for the network the wallet is connected to. Especially useful for creating Sui clients. |
getNetworkName | (props: { walletId: string }) => Promise<SuiNetworkName> | Returns the name of the network the wallet is connected to. |