• Parse CommonMeta data from a transaction meta string. The parser will extract all key=value fields from the string and add them to the custom map.

    If a transaction recipient is available (prepended to the meta string before the semicolon), the recipient field will be set. If it matches a valid Krist name or metaname (e.g. bar.kst or [email protected]), name and metaname will be set respectively.

    If a transaction sender is available via the standard return= field, the return field will be set. Similarly to the recipient, if it matches a valid Krist name or metaname, returnRecipient, returnName and returnMetaname will be set.

    See

    Returns

    The parsed CommonMeta data, or null if metadata is null or no data could be parsed.

    Parameters

    • metadata: undefined | null | string

      The full transaction metadata to parse.

    • nameSuffix: undefined | null | string = "kst"

      The name suffix to use when parsing the name, without the dot. Defaults to kst.

    Returns CommonMeta | null

Generated using TypeDoc