Interface DappMetadata

Hierarchy

  • DappMetadata

Properties

Properties

icon: string

URL to the dapp icon. Must be PNG, ICO, ... . SVG icons are not supported.

Default

best quality favicon declared via in the document or '' if there are no any icons in the document.

name: string

Dapp name. Might be simple, will not be used as identifier.

Default

document.title if exists, 'Unknown dapp' overwise

url: string

Dapp URL. Will be used as the dapp identifier. Will be used to open the dapp after click to its icon in the wallet. It is recommended to pass url without closing slash, e.g. 'https://mydapp.com' instead of 'https://mydapp.com/'.

Default

window.location.origin if exists, otherwise (if not explicitly specified) an error will be thrown.

Generated using TypeDoc