OstiumBuilder Service
API ReferenceHTTP API

Balance (USDC)

Retrieve the trader's USDC balance.

Alpha Version

The Ostium Builder Service is in Alpha. API endpoints, specifications, and builder URLs may change without notice. Use with caution in production environments.

GET /v1/balance/usdc

Returns the trader's USDC balance on-chain.

Headers

HeaderRequiredDescription
X-Trader-AddressYesTrader wallet address.

Response Body

FieldTypeRequiredDescription
addressstringYesTrader address.
symbolstringYesUSDC.
decimalsnumberYesToken decimals (6).
balancestringYesRaw balance in base units.
balanceFormattedstringYesHuman-readable balance with 6 decimals.

Example

curl https://builder.ostiscan.xyz/v1/balance/usdc \
  -H "X-Trader-Address: 0xYourWallet"

Example Response

{
  "address": "0xYourWallet",
  "symbol": "USDC",
  "decimals": 6,
  "balance": "250000000",
  "balanceFormatted": "250.000000"
}

Errors

See /docs/errors.

On this page