psylopunk / pytonlib

Simple python client for The Open Network
https://pydocs.xton.me/
MIT License
93 stars 19 forks source link

Is there a Testnet? #21

Open enty8080 opened 1 year ago

enty8080 commented 1 year ago

Hello, @psylopunk

First of all, thats a great library.

The only thing that I want to know is how can I test your library to work with my project? In Bitcoin, there is a testnet which is intentended in providing testing platform. I mean, anyways, every project connected with money and exchange should be tested properly, isn't that right?

Waiting for your reply.

yungwine commented 1 year ago

you can work in testnet with this library, specifying testnet config url. but also you have to compile tonlibjson binaries and specify the path to them (btw instead of compiling binaries by yourself you can just download them from toncenter/pytonlib) code for example:


client = TonlibClient(config='https://ton.org/testnet-global.config.json')

    client.enable_unaudited_binaries()
    await client.init_tonlib(cdll_path='libtonlibjson.x86_64.dylib')