Global Interlink
  • 🌐Welcome to Global Interlink
  • 💫Global Interlink
    • Abstract
    • Why Decentralization Matters?
    • What Global Interlink?
    • What Will GIL Do?
    • Why GIL?
    • Key Advantages
    • Technical Overall
      • SUI Architecture
    • Why should I participate in Global Interlink?
    • How do I participate?
  • 🔍EXPLORE
    • Launchpad - Moku Finance
      • Technical Architecture
    • Wallet - Sensui Wallet
      • Technical Architecture
      • Sensui Wallet Integration
      • Download Sensui Wallet
      • Create Wallet
      • Import Wallet
    • DEX - Minadex
      • Single-Sided Liquidity Provision
      • Omnichain Fungible Tokens
      • Technical Architecture
    • Marketplace - Sakaya Markets
      • Technical Architecture
  • 🪙GIL Tokenomic
    • GIL Tokenomics
    • Governance DAO Working
    • GIL Token Burning
    • GIL & tGIL Ultilities
  • ✅ROADMAP
    • GIL Ecosystem Roadmap Launch
    • The Future
  • 📌PRIVACY POLICY
    • SUMMARY OF KEY POINTS
    • Terms of Service
    • Disclaimer
Powered by GitBook
On this page
  1. EXPLORE
  2. Wallet - Sensui Wallet

Sensui Wallet Integration

Sensui Wallet Integration

Sensui Wallet can make requests to the wallet from their website:

// Note const Permissions = ['viewAccount','suggestTransactions'] as const;

  • requestPermission(permissions: Permission[]): prompts the user to allow connection from the dApp (neccessary to make other requests)

  • hasPermission(Permissions): check permisstion of the user to allow connection from the dApp (neccessary to make other requests)

  • getAccounts(): gets the address of the account signed into the wallet

// Note interface MoveCallTransaction { packageObjectId: ObjectId; module: string; function: string; typeArguments: string[]; arguments: SuiJsonValue[]; gasPayment?: ObjectId; gasBudget: number; }

  • executeMoveCall(tx: MoveCallTransaction): signs and broadcast the given transaction and submits to chain

  • executeSerializedMoveCall(tx: Base64EncodedString): signs and broadcast (with Serialized) the given transaction and submits to chain

// Check connection status of wallet const result = await window.senSuiWallet.requestPermissions(Permissions)

// Check connection status of wallet const result = await window.senSuiWallet.mi(Permissions)

// Gets the address of the account signed into the wallet const result = await window.senSuiWallet.getAccounts()

// Sign transaction const result = await window.senSuiWallet.executeMoveCall(txs)

// Sign transaction (with Serialized) const result = await window.senSuiWallet.executeSerializedMoveCall(tx.toString())

PreviousTechnical ArchitectureNextDownload Sensui Wallet

Last updated 2 years ago

🔍