Documentation
    Preparing search index...

    Interface DappMetadata

    interface DappMetadata {
        icon: string;
        name: string;
        url: string;
    }
    Index

    Properties

    Properties

    icon: string

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

    best quality favicon declared via <link> 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.

    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/'.

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