Stellar Operations, Balances, and Account Objects
Query Stellar classic.
Operations
Operations are currently indexed by public key:
all operations can be queried through the standard format
opnameByPublicKey
. For example,paymentsByPublicKey
.operations that affect other accounts can also be queried
opnameToPublicKey
. For example,paymentsToPublicKey
.
We advise playing with the GraphiQL endpoint to craft the queries that best fit your requirements.
For example, to index payments from an account:
Note that source, destination, asset, and t-x info are references to other tables, and this is a standard way of retrieving the public keys. In general:
If
assetNative
isfalse
, thenassetByAsset
enables you to read the code and the issuer.If
muxedaccountByDestinationMuxed
is null, thenaccountByDestination
holds the public key. And vice-versa for the operation source.
Balances
To query balances for an account:
Note that if lpShare
is true
, then the balance is for the liquidity pool share of the pool poolID
. Else, the asset is assetByAsset
.
Account Objects
To query the account object for an account:
Last updated