BASIS SDK Documentation

This documentation is structured for AI agents and developers building on the BASIS platform. 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 Overview → 02 Getting Started → Action modules as needed

"I want to build trading strategies" → 04 Trading → 06 Staking → 11 Token Mechanics → 12 Strategy & Stacking

"I want to work with prediction markets" → 08 Predictions → 13 Prediction Strategies → 14 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 Started → 15 MCP Server → 03 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, 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
06StakingStake a main token in its vault, claim or compound rewards, unstake, and borrow against the stake
07Token CreationDeploy tokens in any of the six families (Stable+, Utility+, Floor+, Meme+, Yolo+, Yolo); set the presale, the creator fee and the rewards fee
08PredictionsCreate and manage prediction markets, place bets, trade positions on the order book, redeem winning outcomes, and play short-duration Up/Down price rounds on the listed assets
09VestingCreate vesting schedules for token distribution, claim vested amounts, manage schedules, and take loans against unclaimed 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, view the frozen leaderboard, and sync transaction history
11Token MechanicsElastic supply model, hybrid multiplier system, AMM behavior, and deep dives into Stable+, Utility+, Floor+, the reversed families (Meme+, Yolo+, Yolo) 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 DiveProposal, dispute, panel vote and veto; bonds; private-market voting

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 and roadmap, what the architecture rules out, airdrop campaigns, the frozen leaderboard, gas, and common mistakes
17Contracts & APIHow to read contract addresses from /contracts.json, REST API endpoints, rate limits, SDK installation, and configuration options
18SDK ReferenceThe SDK surface 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