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.1

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.1
File Size Uploaded Provenance Actions
botchain_sdk_py-0.1.1.tar.gz 19.2 kB Without provenance Details for botchain_sdk_py-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 36.7 kB

Release files / botchain_sdk_py-0.1.1.tar.gz

Download URL botchain_sdk_py-0.1.1.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aeb18fb95887c3d7cfc500522207129e52df1498cf366e4300a53cb1dbaf4e58
BLAKE2b-256 checksum
How to use checksums
bacd387d84ead9dd9d1978f1939054387fd55023e735e9ef2c7d3bef3b14eac6
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.1-py3-none-any.whl

Download URL botchain_sdk_py-0.1.1-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
15af7a0b267be17997189857c173c61d42a6abcd50a0763d2654847e8a97186d
BLAKE2b-256 checksum
How to use checksums
a96dea1b2d5e79d260f32eea8f5c7cc6f0d11eec54f340c5413183e5ab649cb1
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.1

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.1 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