Skip to main content

getAccount

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

Needed to get the current sequence number, and balance for the account so you can build a successful transaction.

Parameters

  • <address> - Address of the account to lookup

Returns

  • <object>
    • id: <address>
    • sequence: <string> - Current sequence number of the account
    • TODO: Balances for the account (same format as in horizon) should be displayed
    • TODO: signers/flags/thresholds/etc?

Examples

Request

{
"jsonrpc": "2.0",
"id": 8675309,
"method": "getAccount",
"params": {
"address": "GAO2X2IGYZQEN7RJCA25MB2DM7AQA354AL77DJ2WL46Z6V5XRWVWV44Z"
}
}

Response

{
"jsonrpc": "2.0",
"id": 8675309,
"result": {
"id": "GAO2X2IGYZQEN7RJCA25MB2DM7AQA354AL77DJ2WL46Z6V5XRWVWV44Z",
"sequence": "703867830403072"
}
}