Get contract account state
Returns on-chain state for a passkey smart-account or policy session-account (C-address). Same response shape as the classic account endpoint. The SDK routes G-addresses to /stellar/account/:pk and C-addresses here.
Authorizations
Server-held API key. Injected by the BFF (createRelayRoute / createSignerProxyRoute from @buckspay/nextjs). This key must only appear in server-side code and must never be shipped to a browser bundle.
Path Parameters
Contract address (C-address, StrKey encoded).
^C[A-Z2-7]{55}$"CABC1234..."
Query Parameters
Network to query. Stellar network identifier used in facilitator requests.
stellar-testnet, stellar-pubnet Response
Contract account state returned.
On-chain account state returned by the /stellar/account/:pk and /stellar/contract/:address endpoints. The SDK adapter normalizes the facilitator's nativeBalance field to xlmBalance and strips null values.
Whether the account exists on-chain.
Whether the account has an active USDC trustline.
Native XLM balance as a decimal string (e.g. 10.5000000). Omitted if the facilitator returned null or the account does not exist.
USDC balance as a decimal string. Omitted if the account has no trustline or the facilitator returned null.

