Skip to content

Conversation

@aditya1702
Copy link
Contributor

@aditya1702 aditya1702 commented Nov 13, 2025

What

  • Add the graphql schema to support account balance queries

The following type of query will be supported:

balancesByAccountAddress(address: $address) {
				balance
				tokenId
				tokenType

				... on TrustlineBalance {
					code
					issuer
					type
					limit
					buyingLiabilities
					sellingLiabilities
					lastModifiedLedger
					isAuthorized
					isAuthorizedToMaintainLiabilities
				}
				... on SACBalance {
					code
					issuer
					decimals
					isAuthorized
					isClawbackEnabled
				}
				... on SEP41Balance {
					name
					symbol
					decimals
				}
			}

Why

Part of the account balances milestone: https://github.com/stellar/wallet-backend/milestone/13

Known limitations

N/A

Issue that this PR addresses

Closes #361

@aditya1702 aditya1702 changed the base branch from main to update-token-cache November 13, 2025 18:55
@aditya1702 aditya1702 requested a review from a team November 13, 2025 22:02
Base automatically changed from update-token-cache to main November 20, 2025 16:26
Copy link
Contributor

@aristidesstaffieri aristidesstaffieri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm but looks like there is a go check warning in generated.go

@aditya1702 aditya1702 merged commit d0db822 into main Nov 20, 2025
9 checks passed
@aditya1702 aditya1702 deleted the graphql-balances-schema branch November 20, 2025 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add graphql API schema for balances query

3 participants