Class

AccountResponse

(private) Horizon.AccountResponse(response) → {AccountResponse}

Do not create this object directly, use Horizon.Server#loadAccount.

Returns information and links relating to a single account. The balances section in the returned JSON will also list all the trust lines this account has set up. It also contains BaseAccount object and exposes it's methods so can be used in TransactionBuilder.

Constructor

# private new AccountResponse(response) → {AccountResponse}

Parameters:
Name Type Description
response string

Response from horizon account endpoint.

See:

View Source lib/horizon/account_response.js, line 24

AccountResponse instance

Methods

# accountId() → {string}

Get Stellar account public key ex. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA

View Source lib/horizon/account_response.js, line 38

accountId

string

# incrementSequenceNumber() → {void}

Increments sequence number in this object by one.

View Source lib/horizon/account_response.js, line 54

void

# sequenceNumber() → {string}

Get the current sequence number

View Source lib/horizon/account_response.js, line 46

sequenceNumber

string