Overview

Contracts in pytoniq are not "offline" (as contracts in tonsdk). To use contract you can specify to constructor provider - LiteClient, address, account (type of an Account TLB wrapper), shard_account (type of an ShardAccount TLB wrapper) state_init and other keyword arguments.

It's better to create contracts using classmethods, such as from_address.

To update state of the contract use update method.

You can also call contract attributes, such as data, code and balance which will be taken from account state and call is_active, is_uninitialized and is_frozen attributes.

Last updated