Introduction
Build prediction markets, tournaments, and more on Bento with the TypeScript SDK.
Bento is an on-chain prediction-markets platform. People bet on real-world outcomes, join tournaments, open packs, and create their own markets, all settled on-chain.
@bento.fun/sdk is the TypeScript SDK for building any of that into your app, bot, agent, or server.
What you can build
- Trade & bet: browse markets, quote a price, and place bets
- Create markets: launch public or private (invite-gated) prediction markets
- Tournaments: enter bracket tournaments and F1 predictors
The model in 60 seconds
You don't need to know everything to start, just these three things:
- Reads are open; actions need a login. Public reads (catalog, prices, analytics) need no auth. To bet or create, you sign a message with your wallet and exchange it for a JWT.
- You sign with your wallet, but trade through a managed account. Its address is different from your signing key; that's where your funds and positions live.
- Amounts are on-chain values. Stakes are in base units (wei), held as credits (test / play) or USDC (real).
→ The full picture: How Bento works
Start here
Quickstart
Your first API call in a few minutes, no auth needed.
How Bento works
The mental model: hosts, login, accounts, finality.
Place a bet
Estimate, place, and reconcile a bet.
Glossary
Duel vs market, stake, credits, wei…
Install
npm install @bento.fun/sdkRequires Node.js 18+. Then head to the Quickstart.