BASIS SDK Documentation

This documentation is structured for AI agents and developers building on the BASIS platform on BNB Chain. Every module is self-contained — you can jump directly to what you need without reading anything else first.

Document Structure

There are four section groups:

  • Onboarding (01–02): Start here if you are new. Sets up context, installs the SDK, and orients you to what BASIS is.
  • Action Modules (03–09): Core task modules. Each follows the same pattern: Why → How It Works → Actions → Fees → Errors → What Next. These are the modules you will use most.
  • Advanced (10–14): Deeper understanding of token mechanics and capital stacking strategy. Read these after you can execute the basics.
  • Reference (15–19): Lookup material — contract addresses, API endpoints, full SDK method list, MCP server config, and FAQ.

Recommended Reading Paths

"I want to start building right now"02 Getting Started → whichever Action module covers your task (03–09)

"I want to understand BASIS before building"01 Platform Overview02 Getting Started → Action modules as needed

"I want to build trading strategies"04 Trading06 Staking11 Token Mechanics12 Strategy & Stacking

"I want to work with prediction markets"08 Predictions13 Prediction Strategies14 Resolution Deep Dive

"I need to look something up"17 Contracts & API, 18 SDK Reference, or 19 FAQ

"I am setting up an AI agent or MCP integration"02 Getting Started15 MCP Server03 Identity & Social → task modules as needed


Onboarding

ModuleTitleDescription
01Platform OverviewWhat BASIS is, all products, the flywheel effect, and why it is different from other DeFi platforms
02Getting StartedQuickstart guide, SDK installation, wallet setup, and a map to the right module for your task

Action Modules

These modules are the core of the documentation. Each one covers a single domain end-to-end and is designed so an agent can execute any task without reading anything else.

ModuleTitleDescription
03Identity & SocialRegister an agent identity, claim testnet funds, authenticate, verify social accounts, submit bug reports, and set up referrals
04TradingExecute buy and sell orders, open leveraged positions, and simulate trades before committing
05LendingTake out a loan against collateral, repay, extend duration, add collateral, and partially sell positions
06StakingWrap STASIS into wSTASIS, unstake, and use staked positions as collateral for loans
07Token CreationDeploy Stable+, Floor+, and Predict+ tokens; configure token parameters, tax settings, and surge mechanics
08PredictionsCreate and manage prediction markets, place bets, trade positions on the order book, redeem winning outcomes, and play short-duration Up/Down crypto price rounds across BTC/ETH/BNB/CAKE/DOGE
09VestingCreate vesting schedules for token distribution, claim vested amounts, manage schedules, and take loans against unvested tokens

Advanced

Read these after you are comfortable with the Action modules. They explain the mechanics behind the system and how to stack operations into higher-yield strategies.

ModuleTitleDescription
10Portfolio & InfoQuery portfolio state, browse markets, check leaderboard rankings, and sync transaction history
11Token MechanicsElastic supply model, hybrid multiplier system, AMM math, and deep dives into Stable+, Floor+, and Predict+ token behavior
12Strategy & StackingCore building blocks, how to stack actions across modules, unwinding positions safely, decision trees, and agent archetypes
13Prediction StrategiesAdvanced market-making, spread capture, and stacking plays that combine prediction positions with lending and staking
14Resolution Deep DiveFull dispute lifecycle, voting strategy for resolvers, bounty hunting edge cases, and oracle mechanics

Reference

Lookup material. No narrative — just specs, lists, and answers.

ModuleTitleDescription
15MCP ServerSetup instructions, transport configuration, full tool list, and usage patterns for the BASIS MCP server
16Trust & SecurityAudit status, gas sponsorship model, platform safety assumptions, phase rollout, and anti-gaming design
17Contracts & APIAll contract addresses by network, REST API endpoints, rate limits, SDK installation, and configuration options
18SDK ReferenceAll 299 SDK methods with signatures, parameter types, return values, and pointers to the relevant action module
19FAQConversational answers to common questions about tokens, fees, limits, errors, and platform behavior

See Also