pub fn new(config: &TonClientConfig) -> TonResult<TonClient> {
        let context = Interop::create_context();
        let client = TonClient {
            context,
            crypto: TonCrypto::new(context),
            contracts: TonContracts::new(context),
            queries: TonQueries::new(context)
        };
        client.setup(config)?;
        Ok(client)
    }
/// Create `TonClient` instance with full configuration.
Create `TonClient` instance with full configuration.
Create ` TonClient ` instance with full configuration .
pub fn new(config: &TonClientConfig) -> TonResult<TonClient> {
        let context = Interop::create_context();
        let client = TonClient {
            context,
            crypto: TonCrypto::new(context),
            contracts: TonContracts::new(context),
            queries: TonQueries::new(context)
        };
        client.setup(config)?;
        Ok(client)
    }
pub fn new ( config : & TonClientConfig ) -> TonResult < TonClient > { let context = Interop :: create_context ( ) ; let client = TonClient { context , crypto : TonCrypto :: new ( context ) , contracts : TonContracts :: new ( context ) , queries : TonQueries :: new ( context ) } ; client . setup ( config ) ? ; Ok ( client ) }
Create `TonClient` instance with full configuration.
Create ` TonClient ` instance with full configuration .
config
&TonClientConfig