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

The time at which Klaytn account was created

Type:
  • Number

keyId :String

Private key ID for the account

Type:
  • String

krn :String

KAS KRN

Type:
  • String

publicKey :String

Public key for the account

Type:
  • String

updatedAt :Number

The time of the latest update of account data

Type:
  • Number

multiSigKeys :Array.<MultisigKey>

Type:

threshold :Number

NThreshold of the weighted values required to created a multisig transaction.

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

The time at which Klaytn account was created

keyId String

Private key ID for the account

krn String

KAS KRN

publicKey String

Public key for the account

updatedAt Number

The time of the latest update of account data

Members

address :String

Klaytn account address

Type:
  • String

chainId :Number

Klaytn Chain ID

Type:
  • Number

createdAt :Number

The time at which Klaytn account was created

Type:
  • Number

keyId :String

Private key ID for the account

Type:
  • String

krn :String

KAS KRN

Type:
  • String

publicKey :String

Public key for the account

Type:
  • String

updatedAt :Number

The time of the latest update of account data

Type:
  • Number

multiSigKeys :Array.<MultisigKey>

Type:

threshold :Number

NThreshold of the weighted values required to created a multisig transaction.

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