Skip to main content
QUERY
accountByAddress(address: String!): Account

Arguments

address
String!
required

Account strkey (G...) or contract strkey (C...). Any other value, including a muxed address (M...), returns an INVALID_ADDRESS error.

Returns

Account
address
String!

The account's public key (G...) or contract address (C...).

balances
BalanceConnection!

All token balances held by this account: native XLM, classic trustlines, SAC, SEP-41, and liquidity-pool shares. Edges come in a fixed order by token type: native, trustlines, SEP-41, then liquidity pools for a G-address; SAC, then SEP-41 for a C-address.

Arguments
first
Int

Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.

after
String

Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.

last
Int

Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.

before
String

Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.

transactions
AccountTransactionConnection!

Transactions this account participated in, oldest first. Set since/until to bound the ledger close time; bounded queries on long histories run faster.

Arguments
since
Time

Only include items whose ledger close time is at or after this time.

until
Time

Only include items whose ledger close time is at or before this time. Must not be earlier than since.

first
Int

Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.

after
String

Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.

last
Int

Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.

before
String

Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.

operations
OperationConnection!

Operations this account participated in, oldest first. Set since/until to bound the ledger close time; bounded queries on long histories run faster.

Arguments
since
Time

Only include items whose ledger close time is at or after this time.

until
Time

Only include items whose ledger close time is at or before this time. Must not be earlier than since.

first
Int

Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.

after
String

Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.

last
Int

Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.

before
String

Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.

stateChanges
StateChangeConnection!

State changes affecting this account, oldest first, optionally filtered. Set since/until to bound the ledger close time; bounded queries on long histories run faster.

Arguments
filter
AccountStateChangeFilterInput

Conditions the state changes must match; all are ANDed. Omit for no filtering.

since
Time

Only include items whose ledger close time is at or after this time.

until
Time

Only include items whose ledger close time is at or before this time. Must not be earlier than since.

first
Int

Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.

after
String

Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.

last
Int

Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.

before
String

Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.

sep41Allowances
SEP41AllowanceConnection!

Active SEP-41 allowances granted by this account (as token holder), ordered by spender. Allowances whose expiration ledger is below the latest ingested ledger are filtered out server-side.

Arguments
first
Int

Return up to this many edges from the start of the list, or after after. Default 50 when neither first nor last is set. Maximum 100. Cannot be combined with last or before.

after
String

Cursor from a previous page. Returns the edges after it. Requires first; ignored without it.

last
Int

Return up to this many edges from the end of the list, or before before. Maximum 100. Cannot be combined with first or after.

before
String

Cursor from a previous page. Returns the edges before it. Requires last; ignored without it.

Query
Variables
Response