Sui Dapp Integration

This wallet follows the Sui Wallet Standard. Reference for integrating with your dApp via the in-app browser.


πŸ”Œ Supported Methods

Method

Description

sui:connect

Request wallet connection

sui:getAccounts

Retrieve connected Sui accounts

sui:disconnect

Disconnect from the wallet

sui:signMessage

Sign a raw message

sui:signTransactionBlock

Sign a transaction block

sui:signAndExecuteTransactionBlock


🧩 Detecting Wallet

const provider = window?.wallet?.features?.['sui:connect'];
if (provider) {
  console.log("Sui wallet is available!");
}

βœ… Connect

const accounts = await window.wallet.features['sui:connect'].connect();

Response:


πŸ“‚ Get Accounts


πŸ“ Sign Message

Response:


πŸ” Sign Transaction Block


πŸš€ Sign and Execute Transaction


πŸ›‘ Disconnect


⚠️ Error Handling


References

Last updated

Was this helpful?