Skip to main content

BotChain Python SDK

The official Python SDK for interacting with BOT Chain, an AI-focused Layer 1 ecosystem. This SDK provides complete integration pathways for managing accounts, tokens, concentrated liquidity (BDEX V3), and executing smart contract logic autonomously via our embedded AI Agent integrations.

Features

  • Core Blockchain Client: Connect to Mainnet/Testnet easily with full Web3 provider compatibility. Zero-gas transaction sponsorships natively handled.
  • BDEX V3 Concentrated Liquidity: Manage advanced DeFi interactions.

AI Agent & MCP Server

This SDK natively supports Model Context Protocol (MCP) integrations for autonomous agents like OpenClaw or Claude Desktop. The embedded Agent Policy Engine ensures strict on-chain safeguards including:

  • Hourly rate limits and trade cooldowns.
  • Notional USD limits.
  • Asset Allowlists.

Agents can discover tools (get_balance, get_quote, execute_guarded_swap) over standard JSON-RPC stdio. Run the server locally using the bundled entry point:

botchain-mcp

Automated Liquidity Management (ALM)

We support on-chain math utilities required to properly route and rebalance Concentrated Liquidity positions automatically.

  • Exact tick conversions and boundaries.
  • Precise multi-hop math allowing the SDK to compute optimal swap ratios without trusting off-chain actors.
  • Fully atomic rebalances (with Python-level State Recovery for failing swaps).

Installation

You can install the SDK from source or directly via pip:

pip install botchain-sdk-py

Quick Start

from botchain.client import BotChain
from botchain.tokens import TokenManager

# Initialize Client
client = BotChain(network="mainnet")

# Check token balances
token_mgr = TokenManager(client)
balance = token_mgr.get_balance("0xUSDT_Address", "0xUser_Address")
print(f"USDT Balance: {balance}")

Metadata

Release files for botchain-sdk-py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for botchain-sdk-py 0.1.0
File Size Uploaded Provenance Actions
botchain_sdk_py-0.1.0.tar.gz 19.3 kB Without provenance Details for botchain_sdk_py-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for botchain-sdk-py 0.1.0
File Interpreter ABI Platform Actions
botchain_sdk_py-0.1.0-py3-none-any.whl Python 3 none any Details for botchain_sdk_py-0.1.0-py3-none-any.whl

Total release size: 36.9 kB

Release files / botchain_sdk_py-0.1.0.tar.gz

Download URL botchain_sdk_py-0.1.0.tar.gz
Size 19.3 kB
Tags Source
SHA-256 checksum
How to use checksums
dfdc0bf0ea10168b9da356ebdcfafb3b8a0b867d9676cead1c539532c06e4283
BLAKE2b-256 checksum
How to use checksums
ea2ecc79cf73361d86919a6d95ccf904266c57be62c58415b184336f01d2e5ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / botchain_sdk_py-0.1.0-py3-none-any.whl

Download URL botchain_sdk_py-0.1.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15585970de384880f745ee43b1be343ebb0f85bded49bc03372cba9f312dc329
BLAKE2b-256 checksum
How to use checksums
bb61087b7e0b481a1a6fee856c3d6e7c162f94f8c9613b0a2f48fc4eeb97652d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for botchain-sdk-py 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page