BentoSDK

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:

  1. 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.
  2. 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.
  3. 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

Install

npm install @bento.fun/sdk

Requires Node.js 18+. Then head to the Quickstart.

On this page