pytonlib icon indicating copy to clipboard operation
pytonlib copied to clipboard

Is there a Testnet?

Open enty8080 opened this issue 3 years ago • 1 comments

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.

enty8080 avatar Dec 06 '22 15:12 enty8080

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')

yungwine avatar Apr 13 '23 04:04 yungwine