Function linkedInfoFromChain

  • Decodes accounts, DID, and web3name linked to the provided account.

    Parameters

    • encoded: RawDidLinkedInfo | Option<RawDidLinkedInfo>

      The data returned by api.call.did.queryByAccount(), api.call.did.query(), and api.call.did.queryByWeb3Name().

    • networkPrefix: number = ss58Format

      The optional network prefix to use to encode the returned addresses. Defaults to KILT prefix (38). Use 42 for the chain-agnostic wildcard Substrate prefix.

    Returns LinkedDidInfo

    The accounts, DID, and web3name.