AccountResponse

AccountResponse

Do not create this object directly, use 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 Account object and exposes it's methods so can be used in TransactionBuilder.

Constructor

new AccountResponse(response) → {AccountResponse}

Source:
See:
Parameters:
Name Type Description
response string

Response from horizon account endpoint.

Returns:
Type:
AccountResponse

AccountResponse instance

Methods

accountId() → {string}

Get Stellar account public key ex. GB3KJPLFUYN5VL6R3GU3EGCGVCKFDSD7BEDX42HWG5BWFKB3KQGJJRMA

Source:
Returns:
Type:
string

accountId

incrementSequenceNumber() → {void}

Increments sequence number in this object by one.

Source:
Returns:
Type:
void

sequenceNumber() → {string}

Get the current sequence number

Source:
Returns:
Type:
string

sequenceNumber