Skip to main content
GET
/
2
/
wallet
/
pm
/
balances
Get outcome token balances
curl --request GET \
  --url https://demo-api.mobula.io/api/2/wallet/pm/balances
{
  "data": {
    "safeAddress": "<string>",
    "balances": [
      {
        "tokenId": "<string>",
        "balance": 123
      }
    ]
  },
  "hostname": "<string>",
  "took": 123
}

Query Parameters

wallet
string
required
The wallet address (EOA). The Safe address is derived automatically.
tokenIds
string
required
Comma-separated list of outcome token IDs to check balances for.

Response

data
object
Balance information for the requested outcome tokens.
hostname
string
Server node identifier.
took
number
Request processing time in milliseconds.

Usage Example

curl -X GET "https://api.mobula.io/api/2/wallet/pm/balances?wallet=0xYourWallet&tokenIds=71321...,48340..."

Example Response

{
  "data": {
    "safeAddress": "0x1234567890abcdef1234567890abcdef12345678",
    "balances": [
      { "tokenId": "71321...", "balance": 5.5 },
      { "tokenId": "48340...", "balance": 0 }
    ]
  },
  "hostname": "node-xyz",
  "took": 42
}
Balances are read directly from the ConditionalTokens ERC-1155 contract on Polygon via multicall. A balance of 5.5 means the Safe holds 5.5 outcome tokens (shares). These tokens pay out $1 each if the outcome wins.

Query Parameters

wallet
string
required
tokenIds
string
required

Comma-separated outcome token IDs

Response

200 - application/json

Token balances

data
object
hostname
string
took
number