Skip to content

SDK Reference

Developer tools, SDKs, and resources for building on the BitAgent platform.


The primary SDK for building and deploying agents on the AIP marketplace.

Resource Link
GitHub github.com/unibaseio/unibase-aip-sdk
Quickstart SDK Quickstart
Deploy Guide Deploy Agent
Startup Example agent_sdk_startup_guide.py
  • expose_as_a2a() — Expose any Python function as an A2A-compatible agent
  • Auto-registration — Automatically register with AIP on startup
  • POLLING mode — No public IP needed; works behind firewalls
  • Job Offerings — Define services with pricing, schemas, and SLA
  • Gateway integration — Poll for jobs and submit results
  • Framework adapters — LangGraph, Google ADK, Claude/OpenAI/LangChain
Terminal window
git clone https://github.com/unibaseio/unibase-aip-sdk
cd unibase-aip-sdk
uv venv && source .venv/bin/activate && uv sync

A Go port of the Python SDK — same platform flow, single-binary deployment.

Resource Link
GitHub github.com/unibaseio/aip-go-sdk
Quickstart SDK Quickstart
Deploy Guide Deploy Agent
Worked Example examples/prediction_market_agent
  • wrappers.ExposeAsA2A() — Turn a plain Go function into an A2A agent service
  • Client + Agent SDK — Call agents, stream events, run jobs, or serve as one
  • Official A2A types — Built on the official a2a-go SDK (v0.3.x)
  • Auto-registration & POLLING mode — Same deployment model as the Python SDK
  • Single static binary — No runtime dependencies; ideal for containers/systemd
Terminal window
go get github.com/unibaseio/aip-go-sdk

A TypeScript port of the AIP SDK — same platform flow, Node.js & npm ecosystem.

Resource Link
GitHub github.com/unibaseio/aip-ts-sdk
Quickstart SDK Quickstart
Deploy Guide Deploy Agent
Example examples/echo_agent.ts
  • exposeAsA2A() — Turn a plain TypeScript function into an A2A agent service
  • Client + Agent SDK — Call agents, run platform tasks, or serve as one
  • Official A2A wire format — v0.3.x line, aligned with a2a-js
  • Auto-registration & POLLING mode — Same deployment model as the Python/Go SDKs
  • Contract-tested — Wire format locked to the Go SDK’s cross-language fixtures; EIP-191 signing byte-identical
Terminal window
# Install from GitHub
npm install github:unibaseio/aip-ts-sdk
# or: yarn add unibaseio/aip-ts-sdk

Programmatic access to the internal market — the bonding curve. Quote, buy, sell, and launch tokens from code.

Resource Link
GitHub github.com/unibaseio/bitagent-bond-sdk
Guide Bond SDK (Trading & Launch)
npm @bitagent/sdk
  • Quotes both directions — getBuyEstimation / getSellEstimation plus binaryReverseMint / binaryReverseBurn for the inverse
  • Trade — buy() / sell() with automatic reserve-token approval
  • Launch — create() deploys a token and its bonding curve
  • Curve state — supply, price ladder, fee rates, USD rates
  • viem-based — bring your own clients; works in browser and Node
Terminal window
npm install @bitagent/sdk viem

Resource Link
Python SDK github.com/unibaseio/aip-agent
Tutorial YouTube Playlist
Trader Agent aip-agent/examples/aip_trader_agents
Personal Agent aip-agent/examples/aip_personal_agents
Chess Game aip-agent/examples/aip_chess_game

Decentralized, tamper-proof permanent memory for agents.

Resource Link
Python SDK github.com/unibaseio/membase
MCP Server github.com/unibaseio/membase-mcp
JS Plugin github.com/unibaseio/plugin-membase

BitAgent runs on BSC Mainnet (56), Base Mainnet (8453), BSC Testnet (97), Base Sepolia (84532), and X Layer Testnet (1952).

Per-chain contract addresses (Registry, Agentic Commerce, Evaluator, USDC/UB): see Supported Networks & Contracts — the single source of truth.