Retrieve an Account
The single account endpoint provides information on a specific account. The balances section in the response will also list all the trustlines this account has established, including trustlines that haven’t been authorized yet.
Path Parameters
- account_id string required
This account’s public key encoded in a base32 string representation.
- 200
Returns details like balances, sponserships etc. about an account.
- application/json
- Schema
- Example (from schema)
- RetrieveAnAccount
Schema
_links object
self object
href link requiredtemplated booleannext object
href link requiredtemplated booleanprev object
href link requiredtemplated boolean_embedded object
records object[]
Array [_links object
self object required
href link requiredtemplated booleantransactions object required
href link requiredtemplated booleanoperations object required
href link requiredtemplated booleanpayments object required
href link requiredtemplated booleaneffects object required
href link requiredtemplated booleanoffers object required
href link requiredtemplated booleantrades object required
href link requiredtemplated booleandata object required
href link requiredtemplated booleanid id requiredaccount_id address requiredPossible values: Value must match regular expression
G[A-Z0-9]{55}
sequence sequence requiredPossible values: Value must match regular expression
[0-9]+
sequence_ledger uint32sequence_time stringsubentry_count int32 requiredinflation_destination addressPossible values: Value must match regular expression
G[A-Z0-9]{55}
home_domain stringlast_modified_ledger uint32 requiredlast_modified_time string requiredthresholds object required
low_threshold integermed_threshold integerhigh_threshold integerflags object required
auth_required booleanauth_revocable booleanauth_immutable booleanauth_clawback_enabled booleanbalances object[] required
Array [- anyOf
- BalanceLineNative
- BalanceLineAsset
- BalanceLineLiquidityPool
balance currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
liquidity_pool_id stringlimit currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
buying_liabilites currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
selling_liabilites currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
sponser stringlast_modified_ledger uint32 requiredis_authorized boolean requiredis_authorized_to_maintain_liabilites boolean requiredis_clawback_enabled boolean requiredasset_type string requiredPossible values: [
native
]balance currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
limit currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
buying_liabilites currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
selling_liabilites currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
sponser addressPossible values: Value must match regular expression
G[A-Z0-9]{55}
last_modified_ledger uint32 requiredis_authorized boolean requiredis_authorized_to_maintain_liabilites boolean requiredis_clawback_enabled boolean requiredasset_type string requiredPossible values: [
native
,credit_alphanum4
,credit_alphanum12
]asset_code string requiredasset_issuer address requiredPossible values: Value must match regular expression
G[A-Z0-9]{55}
liquidity_pool_id string requiredasset_type string requiredPossible values: [
liquidity_pool_shares
]balance currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
limit currency requiredPossible values: Value must match regular expression
[0-9]+\.[0-9]{7}
last_modified_ledger uint32 requiredsponser addressPossible values: Value must match regular expression
G[A-Z0-9]{55}
is_authorized boolean requiredis_authorized_to_maintain_liabilites boolean requiredis_clawback_enabled boolean required]signers object[] required
Array [key address requiredPossible values: Value must match regular expression
G[A-Z0-9]{55}
weight int32 requiredtype string requiredPossible values: [
ed25519_public_key
,sha256_hash
,preauth_tx
]sponser addressPossible values: Value must match regular expression
G[A-Z0-9]{55}
]data object requirednum_sponsoring integer requirednum_sponsered integer requiredsponser addressPossible values: Value must match regular expression
G[A-Z0-9]{55}
paging_token string required]
{
"_links": {
"self": {
"href": "string",
"templated": true
},
"next": {
"href": "string",
"templated": true
},
"prev": {
"href": "string",
"templated": true
}
},
"_embedded": {
"records": [
{
"_links": {
"self": {
"href": "string",
"templated": true
},
"transactions": {
"href": "string",
"templated": true
},
"operations": {
"href": "string",
"templated": true
},
"payments": {
"href": "string",
"templated": true
},
"effects": {
"href": "string",
"templated": true
},
"offers": {
"href": "string",
"templated": true
},
"trades": {
"href": "string",
"templated": true
},
"data": {
"href": "string",
"templated": true
}
},
"id": "string",
"account_id": "string",
"sequence": "string",
"sequence_ledger": 0,
"sequence_time": "string",
"subentry_count": 0,
"inflation_destination": "string",
"home_domain": "string",
"last_modified_ledger": 0,
"last_modified_time": "string",
"thresholds": {
"low_threshold": 0,
"med_threshold": 0,
"high_threshold": 0
},
"flags": {
"auth_required": true,
"auth_revocable": true,
"auth_immutable": true,
"auth_clawback_enabled": true
},
"balances": [
{
"balance": "string",
"liquidity_pool_id": "string",
"limit": "string",
"buying_liabilites": "string",
"selling_liabilites": "string",
"sponser": "string",
"last_modified_ledger": 0,
"is_authorized": true,
"is_authorized_to_maintain_liabilites": true,
"is_clawback_enabled": true,
"asset_type": "native"
},
{
"balance": "string",
"limit": "string",
"buying_liabilites": "string",
"selling_liabilites": "string",
"sponser": "string",
"last_modified_ledger": 0,
"is_authorized": true,
"is_authorized_to_maintain_liabilites": true,
"is_clawback_enabled": true,
"asset_type": "native",
"asset_code": "string",
"asset_issuer": "string"
},
{
"liquidity_pool_id": "string",
"asset_type": "liquidity_pool_shares",
"balance": "string",
"limit": "string",
"last_modified_ledger": 0,
"sponser": "string",
"is_authorized": true,
"is_authorized_to_maintain_liabilites": true,
"is_clawback_enabled": true
}
],
"signers": [
{
"key": "string",
"weight": 0,
"type": "ed25519_public_key",
"sponser": "string"
}
],
"data": {},
"num_sponsoring": 0,
"num_sponsered": 0,
"sponser": "string",
"paging_token": "string"
}
]
}
}
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
},
"transactions": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/transactions{?cursor,limit,order}",
"templated": true
},
"operations": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations{?cursor,limit,order}",
"templated": true
},
"payments": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/payments{?cursor,limit,order}",
"templated": true
},
"effects": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/effects{?cursor,limit,order}",
"templated": true
},
"offers": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/offers{?cursor,limit,order}",
"templated": true
},
"trades": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/trades{?cursor,limit,order}",
"templated": true
},
"data": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/data/{key}",
"templated": true
}
},
"id": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"account_id": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"sequence": "120192344791187470",
"subentry_count": 5,
"last_modified_ledger": 28105812,
"num_sponsoring": 0,
"num_sponsored": 0,
"thresholds": {
"low_threshold": 0,
"med_threshold": 0,
"high_threshold": 0
},
"flags": {
"auth_required": false,
"auth_revocable": false,
"auth_immutable": false,
"auth_clawback_enabled": false
},
"balances": [
{
"balance": "3.0000000",
"limit": "922337203685.4775807",
"buying_liabilities": "0.0000000",
"selling_liabilities": "0.0000000",
"last_modified_ledger": 27984507,
"is_authorized": true,
"is_clawback_enabled": false,
"asset_type": "credit_alphanum4",
"asset_code": "EURT",
"asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S"
},
{
"balance": "4.0000000",
"limit": "922337203685.4775807",
"buying_liabilities": "0.0000000",
"selling_liabilities": "0.0000000",
"last_modified_ledger": 27985131,
"is_authorized": true,
"is_clawback_enabled": true,
"asset_type": "credit_alphanum4",
"asset_code": "USD",
"asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
},
{
"balance": "72.8563792",
"buying_liabilities": "0.0000000",
"selling_liabilities": "0.0000000",
"asset_type": "native"
}
],
"signers": [
{
"weight": 1,
"key": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "ed25519_public_key"
}
],
"data": {},
"paging_token": ""
}