Account

Account

new Account()

Version:
  • 1.0

The Account model module.

Members

address :String

Klaytn account address

Type:
  • String

chainId :Number

Klaytn chain ID

Type:
  • Number

createdAt :Number

Timestamp of Klaytn account creation

Type:
  • Number

keyId :String

Private key ID of the account

Type:
  • String

krn :String

KAS KRN

Type:
  • String

publicKey :String

Public key of the account

Type:
  • String

updatedAt :Number

Timestamp when account information was last updated

Type:
  • Number

multiSigKeys :Array.<MultisigKey>

Type:

threshold :Number

Total weight required for multisig transactions

Type:
  • Number

Methods

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

Constructs a Account 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 Account

Optional instance to populate.

Returns:

The populated Account instance.

Type
Account

Account

new Account(address, chainId, createdAt, keyId, krn, publicKey, updatedAt)

Constructs a new Account. Account information

Parameters:
Name Type Description
address String

Klaytn account address

chainId Number

Klaytn chain ID

createdAt Number

Timestamp of Klaytn account creation

keyId String

Private key ID of the account

krn String

KAS KRN

publicKey String

Public key of the account

updatedAt Number

Timestamp when account information was last updated

Members

address :String

Klaytn account address

Type:
  • String

chainId :Number

Klaytn chain ID

Type:
  • Number

createdAt :Number

Timestamp of Klaytn account creation

Type:
  • Number

keyId :String

Private key ID of the account

Type:
  • String

krn :String

KAS KRN

Type:
  • String

publicKey :String

Public key of the account

Type:
  • String

updatedAt :Number

Timestamp when account information was last updated

Type:
  • Number

multiSigKeys :Array.<MultisigKey>

Type:

threshold :Number

Total weight required for multisig transactions

Type:
  • Number

Methods

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

Constructs a Account 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 Account

Optional instance to populate.

Returns:

The populated Account instance.

Type
Account