Establishing a Connection
Last updated
Was this helpful?
Last updated
Was this helpful?
Once an application has detected the provider, it can then request to connect to Phantom. This connection request will prompt the user for permission to share their public key, indicating that they are willing to interact further. Users must approve a connection request before the app can make additional requests such as or .
Once permission is established for the first time, the web application's domain will be whitelisted for future connection requests. After a connection is established, it is possible for the user to terminate the connection from the Phantom settings UI.
The recommended and easiest way to connect to Phantom is by calling window.phantom.sui.requestAccount()
.