Options
All
  • Public
  • Public/Protected
  • All
Menu
description

A DTO class that consists of the transferable properties of an augmented account, a "profile".

This class shall be used in HTTP responses to avoid any additional data about accounts to be revealed.

since

v0.3.2

Hierarchy

Index

Constructors

Properties

address: string

The Address of this account on dHealth Network. The account's address typically refers to a human-readable series of 39 characters, starting either with a T, for TESTNET addresses, or with a N, for MAINNET addresses.

example

"NDAPPH6ZGD4D6LBWFLGFZUT2KQ5OLBLU32K3HNY"

access

public

var

{string}

firstTransactionAt?: number

The time at which this account first interacted with this dApp on dHealth Network.

access

public

var

{number}

firstTransactionAtBlock?: number

The height of the block that included the transaction with which this account first interacted with this dApp on dHealth Network.

todo

Note this is not protected for number overflows (but there is a long way until block numbers do overflow..)

access

public

var

{number}

integrations: string[]

The OAuth integrations that are enabled for one AccountDTO object. This array contains provider identifiers, e.g. `"strava".

example

["strava"]

access

public

var

{string[]}

referralCode: string

The account's referral code. This code should be used when inviting new users to the dApp. This field contains a unique random string of 8 characters.

access

public

var

{number}

referredBy?: string

The account's referrer address. This address refers to the account that invited the current account to the dApp.

This field is optional and indexed.

access

public

readonly
var

{string}

transactionsCount?: number

The total number of transactions discovered for this account on dHealth Network.

access

public

var

{number}

Generated using TypeDoc