Try this:
var StellarSdk = require('stellar-sdk');
var server = new StellarSdk.Server('https://horizon-testnet.stellar.org');
server.loadAccount("GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD")
.then(function(account) { console.log(account.sequence) })
Returns:
33845557768224768
Also try:
server.loadAccount("GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD")
.then(function(account) { console.log(account) })
Response looks like:
AccountResponse {
_baseAccount:
Account {
_accountId: 'GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD',
sequence: BigNumber { s: 1, e: 16, c: [Array] } },
_links:
{ self:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD' },
transactions:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD/transactions{?cursor,limit,order}',
templated: true },
operations:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD/operations{?cursor,limit,order}',
templated: true },
payments:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD/payments{?cursor,limit,order}',
templated: true },
effects:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD/effects{?cursor,limit,order}',
templated: true },
offers:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD/offers{?cursor,limit,order}',
templated: true },
trades:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD/trades{?cursor,limit,order}',
templated: true },
data:
{ href: 'https://horizon-testnet.stellar.org/accounts/GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD/data/{key}',
templated: true } },
id: 'GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD',
paging_token: '',
account_id: 'GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD',
sequence: '33845557768224768',
subentry_count: 0,
thresholds: { low_threshold: 0, med_threshold: 0, high_threshold: 0 },
flags: { auth_required: false, auth_revocable: false },
balances: [ { balance: '10000.0000000', asset_type: 'native' } ],
signers:
[ { public_key: 'GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD',
weight: 1,
key: 'GBFXHIQPYKUE7WPIACEVBIR3TRFKSYVO3LNGMQCZWNQQGRGPPGKOV7UD',
type: 'ed25519_public_key' } ],
data: [Function],
self: [Function],
transactions: [Function],
operations: [Function],
payments: [Function],
effects: [Function],
offers: [Function],
trades: [Function],
data_attr: {} }