# Trepa Documentation > Documentation for Trepa, a Solana-based precision prediction platform that rewards numerical accuracy over binary outcomes. Learn how to make predictions and integrate via the API. ## Docs - [Deposit funds](https://docs.trepa.io/account/deposit-funds.md): How to fund your Trepa wallet with USDC on Solana. - [Sign up](https://docs.trepa.io/account/sign-up.md): How to create a Trepa account with email, social login, or a Solana wallet. - [Withdraw funds](https://docs.trepa.io/account/withdraw-funds.md): How to withdraw USDC from Trepa to any Solana address. - [End the current session](https://docs.trepa.io/api-reference/authentication/end-the-current-session.md): Invalidates the current refresh token and clears the auth cookies. - [Get the authenticated user](https://docs.trepa.io/api-reference/authentication/get-the-authenticated-user.md): Returns the user identified by the current session. - [Refresh an expired session](https://docs.trepa.io/api-reference/authentication/refresh-an-expired-session.md): Exchanges the current `trepa-refresh` cookie for a fresh `trepa-token` and a new `trepa-refresh`. - [Start a session with your API key](https://docs.trepa.io/api-reference/authentication/start-a-session-with-your-api-key.md): Exchanges your API key for session cookies (`trepa-token` and `trepa-refresh`). - [Get a pool by ID](https://docs.trepa.io/api-reference/pools/get-a-pool-by-id.md): Returns a single pool, optionally embedding related entities via `includes`. - [List pools](https://docs.trepa.io/api-reference/pools/list-pools.md): Returns paginated pools with filters, search, sorting, and optional embedded relations. - [Get the Bitcoin streak](https://docs.trepa.io/api-reference/streaks/get-the-bitcoin-streak.md): Returns the streak that powers the Bitcoin Flash product. - [Get the current and next pool in a streak](https://docs.trepa.io/api-reference/streaks/get-the-current-and-next-pool-in-a-streak.md): Returns the pool currently open for predictions and the next pool in the streak. - [Get your streak progress and rewards](https://docs.trepa.io/api-reference/streaks/get-your-streak-progress-and-rewards.md): Returns your current streak count and any streak rewards you have earned. - [List pools in a streak](https://docs.trepa.io/api-reference/streaks/list-pools-in-a-streak.md): Returns pools in the streak with optional `participated_only`/`past_only` filters and pagination. - [Step 1: Build a claim-reward transaction](https://docs.trepa.io/api-reference/transactions/step-1:-build-a-claim-reward-transaction.md): Returns an unsigned transaction that claims your reward on a resolved pool; sign it and submit via `POST /transactions/claim-reward/submit`. - [Step 1: Build a claim-streak-reward transaction](https://docs.trepa.io/api-reference/transactions/step-1:-build-a-claim-streak-reward-transaction.md): Returns an unsigned transaction that claims a streak reward; sign it and submit via `POST /transactions/claim-streak-reward/submit`. - [Step 1: Build a prediction transaction](https://docs.trepa.io/api-reference/transactions/step-1:-build-a-prediction-transaction.md): Returns an unsigned transaction that places a prediction; sign it and submit via `POST /transactions/prediction/submit`. - [Step 1: Build a withdraw transaction](https://docs.trepa.io/api-reference/transactions/step-1:-build-a-withdraw-transaction.md): Returns an unsigned transaction that withdraws USDC to your external wallet; sign it and submit via `POST /transactions/withdraw/submit`. - [Step 1: Build an update-prediction transaction](https://docs.trepa.io/api-reference/transactions/step-1:-build-an-update-prediction-transaction.md): Returns an unsigned transaction that updates the value on an existing prediction; sign it and submit via `POST /transactions/prediction/update/submit`. - [Step 1: Build an update-stake transaction](https://docs.trepa.io/api-reference/transactions/step-1:-build-an-update-stake-transaction.md): Returns an unsigned transaction that updates the staked amount on an existing prediction; sign it and submit via `POST /transactions/stake/update/submit`. - [Step 2: Submit a signed claim-reward transaction](https://docs.trepa.io/api-reference/transactions/step-2:-submit-a-signed-claim-reward-transaction.md): Submits the signed claim-reward transaction with the original `proof`. - [Step 2: Submit a signed claim-streak-reward transaction](https://docs.trepa.io/api-reference/transactions/step-2:-submit-a-signed-claim-streak-reward-transaction.md): Submits the signed claim-streak-reward transaction with the original `proof`. - [Step 2: Submit a signed prediction transaction](https://docs.trepa.io/api-reference/transactions/step-2:-submit-a-signed-prediction-transaction.md): Submits the signed prediction transaction with the original `proof`. - [Step 2: Submit a signed update-prediction transaction](https://docs.trepa.io/api-reference/transactions/step-2:-submit-a-signed-update-prediction-transaction.md): Submits the signed update-prediction transaction with the original `proof`. - [Step 2: Submit a signed update-stake transaction](https://docs.trepa.io/api-reference/transactions/step-2:-submit-a-signed-update-stake-transaction.md): Submits the signed update-stake transaction with the original `proof`. - [Step 2: Submit a signed withdraw transaction](https://docs.trepa.io/api-reference/transactions/step-2:-submit-a-signed-withdraw-transaction.md): Submits the signed withdraw transaction with the original `proof`. - [Get your performance statistics](https://docs.trepa.io/api-reference/users/get-your-performance-statistics.md): Returns lifetime aggregate statistics for your account. - [Get your portfolio](https://docs.trepa.io/api-reference/users/get-your-portfolio.md): Returns a snapshot of your locked stake, realised PnL, and claimable balance. - [Get your progress in a streak](https://docs.trepa.io/api-reference/users/get-your-progress-in-a-streak.md): Returns your current streak count and any streak rewards you have earned. - [Get your user profile](https://docs.trepa.io/api-reference/users/get-your-user-profile.md): Returns your user, optionally embedding related entities via `includes`. - [List your predictions](https://docs.trepa.io/api-reference/users/list-your-predictions.md): Returns your predictions across all pools, with filters, search, sort, and pagination. - [Direct REST access](https://docs.trepa.io/developers/api-endpoints.md): Calling the Trepa API without @trepa/sdk. - [API keys](https://docs.trepa.io/developers/api-keys.md): Create the API key your bot uses to authenticate with Trepa. - [Introduction](https://docs.trepa.io/developers/introduction.md): Automate a Trepa account from code with the official TypeScript SDK. - [Wallet private key](https://docs.trepa.io/developers/private-key.md): Export your embedded wallet key so the SDK can sign transactions. - [Quickstart](https://docs.trepa.io/developers/quickstart.md): Run your first Trepa bot from Node with @trepa/sdk. - [Rate limits](https://docs.trepa.io/developers/rate-limits.md): Per-IP limits, 429 responses, and withdrawal quotas. - [SDK reference](https://docs.trepa.io/developers/sdk-reference.md): Trepa client layout: config, bots.run, and every trepa.* namespace. - [Swarms](https://docs.trepa.io/developers/swarms.md): Run several Trepa bots from one process, one account per bot. - [Writing bots](https://docs.trepa.io/developers/writing-bots.md): How predict, ctx, hooks, and shutdown work with trepa.bots.run. - [Best coalition exception](https://docs.trepa.io/game-rules/best-coalition-exception.md): How everyone tied for the best error can still win under the best-coalition rule. - [Winning and losing](https://docs.trepa.io/game-rules/winning-and-losing.md): How winners and losers are picked each round under the median-error rule. - [Winning range](https://docs.trepa.io/game-rules/winning-range.md): How the winning-range band shows outcomes where your estimate would beat the median. - [Install the app](https://docs.trepa.io/getting-started/install-app.md): How to add Trepa to your home screen as a Progressive Web App. - [Quick start](https://docs.trepa.io/getting-started/quick-start.md): How a one-minute Flash Pool round runs from forecast through settlement. - [What is Trepa?](https://docs.trepa.io/getting-started/what-is-trepa.md): How Trepa Flash Pools work and why closeness beats coarse yes/no betting. - [Accuracy weight](https://docs.trepa.io/payouts/accuracy-weight.md): How accuracy weight turns a closer forecast among winners into a larger prize share. - [Capped proportional payout](https://docs.trepa.io/payouts/capped-payout.md): How the 100× per-round profit cap works after accuracy-weighted splits. - [Payout overview](https://docs.trepa.io/payouts/payout-overview.md): How entry fees flow to winners, platform take, and the accumulator in each round. - [Edge cases](https://docs.trepa.io/references/edge-cases.md): How voids, ties, and other rare round outcomes are handled. - [Resolution and outcome source](https://docs.trepa.io/references/resolution-source.md): How settlement price is built from Binance BTC/USDT trade data. - [Crowd Signal](https://docs.trepa.io/scoring/crowd-signal.md): How Crowd Signal summarizes the pool during resolution (display only). - [Leaderboards and aggregate scoring](https://docs.trepa.io/scoring/leaderboards.md): How daily, weekly, and monthly leaderboards rank you using CAR from Precision Scores. - [Precision Score](https://docs.trepa.io/scoring/precision-score.md): How Precision Score works and what moves it each round. - [Volatility calibration](https://docs.trepa.io/scoring/volatility-calibration.md): How volatility calibration keeps a 500 Precision Score aligned with one typical one-minute move. - [Solana Mobile](https://docs.trepa.io/solana-mobile/overview.md): How native Trepa on Solana Mobile will work (preview for Seeker-class devices). - [Accumulator payout](https://docs.trepa.io/streaks-accumulator/accumulator-payout.md): How the accumulator pays streak achievers and rolls the rest forward. - [Streaks](https://docs.trepa.io/streaks-accumulator/streaks.md): How precision streaks work and why they are separate from winning on the median rule. - [Early access & waitlist](https://docs.trepa.io/waitlist/early-access.md): How the waitlist, referrals, and invite codes unlock early access to Trepa. ## OpenAPI Specs - [openapi](https://docs.trepa.io/openapi.json) ## Optional - [Launch App](https://trepa.app)