During development, you can use the developer endpoints
without an API key. For production use, you’ll need an
API key to avoid rate limits.
Fetch Wallet Token Accounts
Fetch SPL token accounts for the wallet and keep only non-zero balances.
Outcome tokens are Token-2022 mints, so query the Token-2022 program.
Fetch Token Accounts
Fetch Token Accounts
Filter for Outcome Mints
Filter the wallet mints down to prediction market outcome tokens using the
Metadata API.
Filter Outcome Mints
Filter Outcome Mints
Fetch Market Details in Batch
Pull market metadata for those outcome mints so you can label YES/NO and
display event and market context.
Fetch Markets Batch
Fetch Markets Batch