Fina Documentation
  • 👋Welcome to Fina
  • Fina Wallet
    • 📱Overview
    • 🛠️Features
      • Create/ Import Wallet
      • Manage/ Transfer Tokens
      • Staking
      • Connect to dApps
      • Governance
      • Misc Settings
    • 🖥️For Developers
  • Fina Card
    • 💳Overview
    • 🛠️Features
      • Getting Started
      • Read Card Details
      • Edit Card Details
      • Top Up Balance
      • Transaction Histories
    • 🖥️For Developers
  • FINA P2P
    • 💱Overview
    • 🛠️Features
      • Getting Started
      • Create a Post
      • Enter a Deal
      • Resolve Dispute
  • Fina Token
    • 🪙Utilities
    • 📊Tokenomics
    • 💰How to Vest
    • 📈How to Buy
  • Website
  • White Paper
  • Discord
Powered by GitBook
On this page
  • Integration with dApps
  • Deep Linking

Was this helpful?

  1. Fina Wallet

For Developers

PreviousMisc SettingsNextOverview

Last updated 2 years ago

Was this helpful?

Integration with dApps

To detect if users are accessing your dApp on Fina, you can check if the following object exist.

window.fina

If this is undefined that means user is not accessing your dApp via Fina Wallet's in-app browser.

Fina Wallet exposes the same API as . So if your dApp supports Keplr, it should be working on Fina Wallet out of the box. You can check Keplr's API documentation

Besides, the window.fina object is just a pointer to window.keplr so the underlying methods and properties will be the same

Deep Linking

If you want to redirect users from your dApp to Fina Wallet, you can use the following deep link

fina://wallet

If you want to redirect users to your dApp directly on Fina's in-app browser, you can use the following deep link

fina://wallet/dapps?network=secret-4&url=https%3A%2F%2Fcard.fina.cash

There are 2 url parameters in the deep link

  1. network - the chain ID of the network your dApp is connecting to

  2. url - your dApp's URL-encoded url

Example (provided by SCRT Labs )

const urlSearchParams = new URLSearchParams();
urlSearchParams.append("network", "secret-4");
urlSearchParams.append("url", window.location.href);

window.open(`fina://wllet/dapps?${urlSearchParams.toString()}`, "_blank");
🖥️
Keplr
here
here