Class

Account

Account(accountId, sequence)

Create a new Account object.

Account represents a single account in the Stellar network and its sequence number. Account tracks the sequence number as it is used by TransactionBuilder. See Accounts for more information about how accounts work in Stellar.

Constructor

# new Account(accountId, sequence)

Parameters:
Name Type Description
accountId string

ID of the account (ex. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA). If you provide a muxed account address, this will throw; use MuxedAccount instead.

sequence string

current sequence number of the account

View Source js-stellar-base/src/account.js, line 22

Classes

Account

Methods

# accountId() → {string}

Returns Stellar account ID, ex. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA.

View Source js-stellar-base/src/account.js, line 44

string

# incrementSequenceNumber() → {void}

Increments sequence number in this object by one.

View Source js-stellar-base/src/account.js, line 59

void

# sequenceNumber() → {string}

View Source js-stellar-base/src/account.js, line 51

sequence number for the account as a string

string