Class Identity

Hierarchy (view full)

Constructors

Properties

API_PREFIX: string = '/wallet-identity'

Base API url for identity.

Methods

  • Get a wallet's on-chain identity data, including Subsocial and Polkadot Identity data

    Parameters

    • walletAddress: string

      Wallet address to retreive data for

    Returns Promise<WalletIdentityData>

    Identity data fetched from Polkadot Identity and Subsocial

  • Generate a message presented to the user when requested to sign using their wallet

    Parameters

    • Optional customText: string = 'Please sign this message'

    Returns {
        message: string;
        timestamp: number;
    }

    Generated message and timestamp

    • message: string
    • timestamp: number