ERC-1710 Web3 browser URL format (URL Format for Web3 Browsers)

Stagnant · Other · created 2019-01-13

A URL format that represents dApp links with a dapp: scheme so a mobile web3 browser opens automatically with the desired chain preselected.

Why it is needed

Ordinary mobile browsers lack web3 (blockchain integration) functionality and cannot properly run dApps. As a result, each dApp created its own URL scheme to link to a specific web3 browser app, and because these schemes differed across browsers, compatibility suffered. The existing ethereum: scheme (EIP-831) was not a viable alternative either, since multiple Ethereum-related apps, such as wallets and identity management apps, register and use that scheme together. In environments like iOS, where multiple apps can register to handle the same URL scheme, it becomes unpredictable which app will actually open, creating a problem where an app without web3 browser functionality opens and fails to handle the deep link properly.

In depth

URL syntax (ABNF)

The specification defines it as request = "dapp" ":" [chain_id "@"] dapp_url. chain_id is 1*DIGIT and dapp_url is a URI. The key distinction from an ordinary web URL is that the scheme (protocol) portion must be "dapp".

The meaning of chain_id

chain_id is an optional parameter that specifies the chain ID defined in EIP-155. The browser automatically selects the network corresponding to this chain_id before opening the dApp.

Interpreting dapp_url

dapp_url must be a valid URI conforming to RFC3986. For example, dapp:1@peepeth.com/brunobar79?utm_source=github is interpreted as selecting chain ID 1 (mainnet) and then navigating to https://peepeth.com/brunobar79?utm_source=github.

Reason for separating it from the ethereum: scheme

The ethereum: scheme from EIP-831 is already registered and used by multiple types of Ethereum-related apps, including wallets and identity management apps. In environments like iOS, where multiple apps can register to handle a single URL scheme, it is unpredictable which app will actually open, which can cause an app without web3 browser functionality to open and fail to handle the deep link. The dapp: scheme was defined separately to avoid this kind of conflict.

Proposal status

This ERC is in Stagnant status, meaning the proposal is no longer actively discussed and its adoption process has stalled.

Original ERC · ← ERCs