Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.
Query Parameters
The wallet address (EOA). The Safe address is derived automatically.
Comma-separated list of outcome token IDs to check balances for.
Response
Balance information for the requested outcome tokens. The Safe trading account address.
Array of token balance objects. The ERC-1155 outcome token ID.
Token balance (in token units, 6 decimal precision).
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.
Comma-separated outcome token IDs