Skip to main content

Python TAC SDK

Project description

TAC SDK (Python)

Python SDK for TON <-> TAC cross-chain operations. Repository: https://github.com/TacBuild/python-tac-sdk

ETH <-> TON Bridge Helpers

See the dedicated helper docs: helpers/README.md

Installation

pip install tac-sdk

Prerequisities

  1. Create .env out of .env.example and populate it with necessary data;
  2. Fund your TAC wallet (the one which corresponds to EVM_PRIVATE_KEY) on the TAC chain with WTAC to pay fees. You can use https://bridge.tac.build/; Addresses on TAC and ETH chains are equal for the same EVM_PRIVATE_KEY.
  3. Go to WTAC address https://explorer.tac.build/token/0xB63B9f0eb4A6E6f191529D71d4D88cc8900Df2C9 and connect your wallet EVM_PRIVATE_KEY. Navigate to Contract > Read/Write contract > Write > approve. Set spender to be composer address (currently 0xC1313fD7ca98a85E8a0A3398739801f6653d456b) and your value. As of Feb 2026 bridge tx on TAC chain costs ~120-150 WTAC. If you happen to reach allowance limit, your bridge txs start to fail. You can increase allowance with higher value;
  4. For cbBTC. Go to https://etherscan.io/token/0xcbb7c0000ab88b473b1f5afd9ef808440eed33bf and connect your wallet EVM_PRIVATE_KEY. Navigate to Contract > Write as Proxy. Set spender to be cbBTC OFT adapter on ETH chain (0x59Ea2825d8Ad7D60cC6Aa77FFbDD0E89c0fBF539) and the value of cbBTC you expect to bridge in upcoming future;
  5. For WETH. Go to https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2 and connect your wallet EVM_PRIVATE_KEY. Navigate to Contract > Write as Proxy. Set spender to be WETH OFT adapter on ETH chain (0xf211D3B40A74632162F45F4d42A461b663694a9D) and the value of WETH you expect to bridge in upcoming future.

Quick start

import asyncio
from sdk.tac_sdk import TacSdk
from structs.struct import Network, SDKParams


async def main() -> None:
    sdk = await TacSdk.create(SDKParams(network=Network.TESTNET))
    token = await sdk.getFT("EQBLi0v_y-KiLlT1VzQJmmMbaoZnLcMAHrIEmzur13dwOmM1")
    print(token.address)


asyncio.run(main())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tac_sdk-0.1.1.tar.gz (491.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tac_sdk-0.1.1-py3-none-any.whl (554.6 kB view details)

Uploaded Python 3

File details

Details for the file tac_sdk-0.1.1.tar.gz.

File metadata

  • Download URL: tac_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 491.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.7 Windows/11

File hashes

Hashes for tac_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8e8be51569b27219cc0bb64776e87b12059c7c9fa9687b959c7f398e38cbb16d
MD5 2deee1dd2f8bf40c8b525f5e0ea09356
BLAKE2b-256 8e93cb7af580b032a8379fd9203c2b003ecfb2bbb65751bbda3c35bbc7c42a56

See more details on using hashes here.

File details

Details for the file tac_sdk-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tac_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 554.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.7 Windows/11

File hashes

Hashes for tac_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d90fe7f439260c6c7ef308eefd8ca46002cfd2998e8cc7baade3462d9822831c
MD5 a0f0123a5e54f6afdaec3786c5db9888
BLAKE2b-256 59dae4831941c464aa595126b41bf5741110e837324f419205b56878129be96c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page