Dynamic Link to In-app Browser
DCENT mobile app has Dynamic Link feature. You can make it easy for users to connect to the DCENT mobile app's in-app browser by using Dynamic Link.
Dynamic Link Format
DCENT wallet's Dynamic Link consists of a base URL and parameters. There are url of the dapp and network as parameters.
- Dynamic Link Base URL : https://link.dcentwallet.com/DAppBrowser/
url parameter is encoded URI component and network parameter indicates which network the dapp is based on.
You can see the code below how to create Dynamic Link.
const linkUrl = encodeURIComponent("url-of-the-dapp")
const network = 'ethereum-mainnet'
const deepLink = "https://link.dcentwallet.com/DAppBrowser/?url=" + linkUrl + "&network=" + network
network list
| network parameter | Network |
|---|---|
| ethereum-mainnet | Ethereum Mainnet |
| ethereum-ropsten | Ethereum Testnet Ropsten |
| ethereum-rinkeby | Ethereum Testnet Rinkeby |
| ethereum-goerli | Ethereum Testnet Goerli |
| ethereum-kovan | Ethereum Testnet Kovan |
| bsc-mainnet | Binance Smart Chain Mainnet |
| bsc-testnet | Binance Smart Chain Testnet |
| polygon-mainnet | Polygon Mainnet |
| polygon-mumbai | Polygon Testnet Mumbai |
| rsk-mainnet | RSK Mainnet |
| rsk-testnet | RSK Testnet |
| flare-coston | Flare Testnet Coston |
| klaytn-mainnet | Klaytn Mainnet |
| klaytn-baobab | Klaytn Testnet Baobab |
| tron-mainnet | Tron Mainnet |
| tron-shasta | Tron Testnet Shasta |
| heco-mainnet | HECO Chain Mainnet |
| xdai-mainnet | xDai Chain Mainnet |
| ftm-mainnet | Fantom Mainnet Opera |
| xdc-mainnet | XinFin Network Mainnet |
| celo-mainnet | Celo Mainnet |
| kcc-mainnet | KCC Mainnet |
| avalanche-mainnet | Avalanche C-Chain Mainnet |
| arbitrum-mainnet | Arbitrum Mainnet |
| arbitrum-testnet | Arbitrum Testnet Rinkeby |
| boba-mainnet | BOBA L2 Mainnet |
| oec-mainnet | OEC Mainnet |
| HARMONY-mainnet | HARMONY Mainnet |
| HARMONY-testnet | HARMONY Testnet |
| Orbit | Orbit Chain |
| Orbit-testnet | Orbit Chain Testnet |
| klaytn-evm-mainnet | Klaytn(EVM) Mainnet |
| Oasys | Oasys Games |
| Optimism | Optimism Mainnet |
| MEVerse | MEVerse |
| BASE | BASE |
| BASE-Goerli | BASE Goerli Testnet |
| ethereum-sepolia | Ethereum Sepolia Testnet |
| kroma | Kroma Mainnet |
| kroma-sepolia | Kroma Sepolia Testnet |
| astar | Astar (EVM) Mainnet |
| xrpl-mainnet | XRPL Mainnet |
| xrpl-testnet | XRPL Testnet |
| stellar-pubnet | Stellar Public Network |
| stellar-testnet | Stellar Testnet |
Testnet Enabling
If the network parameter is set as testnet, it will only work if the "enabled testnet" setting is turned on.
Example Dynamic Link
Here are example Dynamic Links for your reference. Just click the link in the mobile environment to understand how it works.
- UniSwap : https://link.dcentwallet.com/DAppBrowser/?url=https%3A%2F%2Fapp.uniswap.org%2F&network=ethereum-mainnet
- PancakeSwap : https://link.dcentwallet.com/DAppBrowser/?url=https%3A%2F%2Fpancakeswap.finance%2F&network=bsc-mainnet
- KlaySwap : https://link.dcentwallet.com/DAppBrowser/?url=https%3A%2F%2Fklayswap.com%2F&network=klaytn-mainnet