getAccount

Fetches a minimal set of current info about a Stellar account.

This is needed to get the current sequence number for building transactions with com.soneso.stellar.sdk.TransactionBuilder. The account data is fetched from ledger entries.

Example

val account = server.getAccount("GABC...")
val transaction = TransactionBuilder(account, Network.TESTNET)
.addOperation(...)
.build()

Return

A TransactionBuilderAccount containing the sequence number and address

Parameters

address

The account address to load (G... format, muxed accounts supported)

See also

Throws

If the account address is invalid

If the account does not exist

If the RPC request fails

If network errors occur