Saakuru Source
HomeExplorerPortalX official
  • Welcome to Saakuru Source
  • Introducing the Saakuru Labs
    • Web3 Gaming Industry
    • Web3 Game Development Business
    • Web3 Game Developer Stack
  • Saakuru (SKR) Token
    • Trade
    • Tokenomics
    • Developer Layer
    • DeFi Layer
    • Governance Layer
    • Lossless Protection Layer
    • Transparency Portal
    • Contracts
  • Saakuru Games Incubation Program (SGIP)
  • Saakuru Games Publishing Program (SGPP)
  • Saakuru Blockchain
    • The Mission
      • The Problems
      • The Solution
      • The On-Chain Effect. Web2 -> Web3
    • Explorer
    • Architecture
    • Security
    • Scam Resistance
    • Gasless Transactions
    • Environments
      • Verify Contract on Saakuru Explorer
    • Developer References
    • Adding Network to Wallet
      • Saakuru -> Saakuru App
      • Saakuru -> MetaMask
      • Saakuru -> Trust Wallet
  • Saakuru Game Developer Suite
    • Self-service Portal
    • Saakuru Blockchain
    • Wallet SDK - The Seamless Backend Wallet Solution for Games
      • FAQ: How to Choose the Right Web3 Wallet for Your Game
    • Tokens SDK - The Ultimate Asset Management Solution for Web3 Games
      • FAQ: Web3 Tokens in Gaming – Everything Game Studios Need to Know
    • Characters SDK: Morfable NFT Characters for Immersive Web3 Gaming
      • FAQ: How NFTs Work in Web3 Gaming and the Role of Charact3rs Service
    • Market SDK: Seamless In-Game Marketplace Integration (Coming 2025)
    • Collect Service: Simplifying In-Game Event Data for Web3 Gaming
    • Pricing
  • Roadmap
  • Investments to Games
  • Core Team
  • Ecosystem partners
  • Games
  • Open Job Positions
  • Appendix
    • Official Links
    • Disclaimer
    • Legal Notice
    • Marketing Kit
Powered by GitBook
On this page
  • Introduction to injected authorization:
  • Libraries and UI elements.
  • Summary
  1. Saakuru All-in-One Crypto App

Support connection on your DApp

Last updated 6 months ago

One of the main Saakuru App benefits is the ability to fully access Web3 World via an inbuilt browser. Within a few clicks, users can find and connect to a large number of decentralized applications. In this article, we will overview how any developer can very quickly open his web-based dApp to the Saakuru App user base.

Introduction to injected authorization:

Saakuru App uses a custom Injected Web Provider script, which sets the `window. ethereum` object into the browser window (similar solutions are used by a few other most popular wallets like “MetaMask.” This object can be accessed globally from web applications and contains core required variables and functions for communication with Saakuru Wallet:

  1. window.ethereum.enable() -> Promise, which emits a connect

  2. window.ethereum.isMetaOne -> Boolean which indicates that the injected solution is Saakuru wallet.

  3. window.ethereum.chainId -> string hex of current selected network

  4. window.ethereum.request -> Promise for various Signing and Sending Requests (main supported methods “eth_sign”, “eth_signTypedData”, “personal_sign”, “eth_sendTransaction”, “eth_requestAccounts”):

  5. window.ethereum.sendAsync -> Allows requests batching. It also allows injecting custom callback as the second parameter of the function.

windows.ethereumobject is an extended class of EventEmitter, so internal events are also happening inside injected script logic. You can use the EventEmitter function addEventListener to listen to the internal event connect (Usually, this is automatically implemented inside the libraries most of the developers use, but in case you decide to build a custom solution, you can rely on this event to detect a successful connection)

For more secure verification, we recommend using the eth_sign request, which response you will be able to verify with the web3.js library and be sure that the wallet address is not faked.

Libraries and UI elements.

For a beginner, we are recommending the @web3-react library produced by the amazing Uniswap team:

This library will contain all required integration points

We recommend you build a button `Connect with Injected Wallet” which will be visible if windows.ethereum the object is defined. If you detect window.ethereum.isMetaOne as True you can apply a nice UI and label it “Connect with Saakuru App”.

Example:

Summary

In case window.ethereum.isMetaOne the variable is not defined, we recommend you add a link button with a dedicated partner download code (ask your direct contact from the AAG team) or a publicly used dynamic Link

Saakuru App icon for UI ->

Our development team wishes you the best of luck working on your dApp project, and we will be more than thrilled to whitelist your application in and expose it to thousands of Saakuru One community members! Please contact us via partnership@saakuru.com for the review

https://github.com/Uniswap/web3-react
https://www.npmjs.com/package/@web3-react/injected-connector
https://metaone.page.link/connect
HERE
https://app.saakuru.com/dapp-store/discover