Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DescriptorData

Descriptor Data

SRC44-compliant Descriptor Data to be used as description in Smart Contracts, Account Info, and/or Aliases. Use DescriptorDataBuilder to construct from the scratch, or use this to parse json data

Hierarchy

  • DescriptorData

Index

Accessors

account

  • get account(): string

alias

  • get alias(): string

avatar

background

description

  • get description(): string

extension

  • get extension(): string

homePage

  • get homePage(): string

id

  • get id(): string

name

  • get name(): string

raw

sendRule

  • get sendRule(): RegExp

socialMediaLinks

  • get socialMediaLinks(): string[]

type

version

  • get version(): number

Methods

clone

estimateFeePlanck

  • estimateFeePlanck(baseFee?: number): string
  • Estimates the minimum transaction fee for the given payload

    Parameters

    • Default value baseFee: number = 20000000

      The baseFee for calculation in planck. Default is 0.2 SIGNA = 20000000 Planck

    Returns string

    fee in Planck

get

getCustomField

  • getCustomField(fieldName: string): unknown

merge

stringify

  • stringify(): string

validate

  • validate(): void

Static create

Static parse

  • Creates/Parses a SRC44 compliant descriptor string

    throws

    SRC44ParseException in case of errors

    Parameters

    • jsonString: string

      The SRC44 compliant string. See also stringify

    • Default value strict: boolean = true

      If true, the standard check is more strictly

    Returns DescriptorData

    A new instance of DescriptorData