Predict
PREDICTION
LAUNCHPAD

Get balance

Fetch the $PREDICT balance of an account with a GET request. Pass the account identifier to receive the available balance (and optionally credit loaned) in $PREDICT.

Base URL

All API requests use this base:

https://nqyocjuqubsdrguazcjz.supabase.co

HTTP request

Send a GET request to the balance endpoint with the required headers and the account identifier as a query parameter.

Endpoint

GET https://nqyocjuqubsdrguazcjz.supabase.co/rest/v1/rpc/get_balance?account_id=eq.<account-id>

Replace <account-id> with the wallet address or account ID associated with your API key.

Required headers

apikey: <your-api-key>
Accept: application/json

Query parameters

  • account_id (required) — The wallet address or account identifier whose balance to return.

Example:

GET https://nqyocjuqubsdrguazcjz.supabase.co/rest/v1/rpc/get_balance?account_id=eq.7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU

Response

On success, the API returns 200 with a JSON object containing the account balance:

{
  "success": true,
  "cashBalance": number,
  "creditLoaned": number
}

cashBalance — available $PREDICT balance that can be used for betting or withdrawal. creditLoaned — amount currently loaned (if applicable). For accounts that have never deposited, cashBalance may be 0.