Register Enoki Wallets
Initializing
To register Enoki wallets using the
wallet-standard, you can use the
registerEnokiWallets
function. This will add a wallet for each of the configured auth providers.
These wallets implement all the standard wallet standard features, and can be interacted with like
any other Sui wallet.
Note that Enoki wallets are bound to a specific network, so you will need to re-register your Enoki wallets using an updated client instance and network configuration whenever the targeted network changes. See the React integration section below for how this is handled.
When the standard:connect
feature is called, the Enoki SDK will open a pop-up window to handle the
OAuth flow. Once the Oauth flow has completed, the wallet will now be connected, and can be used to
sign transactions or personal messages.
React integration
First, set up the dapp-kit providers as described in the
dapp-kit docs. Next, create a component
to register the Enoki wallets using the registerEnokiWallets
function. This component should be
rendered before the wallet provider.