internal/ton library

Classes

TonClient
TON support for balances, Wallet V5R1 native transfers, and raw transaction requests. Implemented by TonClientImpl; hosts can substitute this interface in tests.
TonClientImpl
TON support for balances, Wallet V5R1 native transfers, and raw transaction requests. Instances share the root client's state. NOTE: not yet thread-safe.
TonExtension
Registers TonClientImpl on the root client. Access it through client.ton.
TonState
Ton-owned session state (see ClientState for the shared core equivalent).

Extensions

DynamicClientTon on DynamicClient
Convenience accessor: fetches the installed TonClientImpl. Throws a clear error instead of a raw getExtension
TonBuilder on DynamicClient
Installs Ton and returns the client for chaining.