BentoSDK
SDK API reference

Overview

Auto-generated @bento.fun/sdk HTTP method reference — public, user, and tournaments.

Every HTTP method exposed by @bento.fun/sdk, grouped in the left nav under SDK API reference. Prefer the Cookbook for day-to-day work. Use OpenAPI specs for request/response JSON schemas (agents / LLMs / codegen).

252 methods across 31 namespaces.

New here? Start with Quickstart, then Cookbook and Common patterns (duelId vs id, wei, auth).

Setup

import { createBentoSdk, walletAuthProvider, jwtAuthProvider } from '@bento.fun/sdk';

const sdk = createBentoSdk({
  baseUrl: process.env.BENTO_URL!, // https://internal-server.bento.fun
  apiKey: process.env.BENTO_BUILDER_API_KEY!,
  tournamentsBaseUrl: process.env.PARLAY_TOURNAMENT_URL, // optional
  auth: walletAuthProvider(() => ({ Authorization: `Bearer ${token}` })),
  tournamentsAuth: jwtAuthProvider({ getAccessToken: () => token }),
});

Sections

On this page