FTSummary

FTSummary

new FTSummary()

Version:
  • 1.0

The FTSummary model module.

Members

address :String

Contract address (20-byte)

Type:
  • String

owner :String

EOA address (20-byte)

Type:
  • String

balance :String

Token balance (hex)

Type:
  • String

formattedValue :String

Converted value using the decimals

Type:
  • String

decimals :Number

FT decimals

Type:
  • Number

name :String

FT name

Type:
  • String

symbol :String

FT symbol

Type:
  • String

totalSupply :String

FT total supply (hex)

Type:
  • String

updatedAt :Number

UNIX timestamp of when the token information last changed

Type:
  • Number

Methods

(static) constructFromObject(data, obj) → {FTSummary}

Constructs a FTSummary from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj FTSummary

Optional instance to populate.

Returns:

The populated FTSummary instance.

Type
FTSummary

FTSummary

new FTSummary(address, owner, balance, formattedValue, decimals, name, symbol, totalSupply, updatedAt)

Constructs a new FTSummary.

Parameters:
Name Type Description
address String

Contract address (20-byte)

owner String

EOA address (20-byte)

balance String

Token balance (hex)

formattedValue String

Converted value using the decimals

decimals Number

FT decimals

name String

FT name

symbol String

FT symbol

totalSupply String

FT total supply (hex)

updatedAt Number

UNIX timestamp of when the token information last changed

Members

address :String

Contract address (20-byte)

Type:
  • String

owner :String

EOA address (20-byte)

Type:
  • String

balance :String

Token balance (hex)

Type:
  • String

formattedValue :String

Converted value using the decimals

Type:
  • String

decimals :Number

FT decimals

Type:
  • Number

name :String

FT name

Type:
  • String

symbol :String

FT symbol

Type:
  • String

totalSupply :String

FT total supply (hex)

Type:
  • String

updatedAt :Number

UNIX timestamp of when the token information last changed

Type:
  • Number

Methods

(static) constructFromObject(data, obj) → {FTSummary}

Constructs a FTSummary from a plain JavaScript object, optionally creating a new instance. Copies all relevant properties from data to obj if supplied or a new instance if not.

Parameters:
Name Type Description
data Object

The plain JavaScript object bearing properties of interest.

obj FTSummary

Optional instance to populate.

Returns:

The populated FTSummary instance.

Type
FTSummary