Hi,

When I try to call get methods using lite-client, if they use network configs, I'll get an error, because these configs are not available in get method execution using lite-client.

However, if I run the same method using tonlib-cli, it works.

On server environments, I can fallback to tonlib-cli to pass this limitation. But in client apps, when using ton-access, it looks like that servers are lite-client instances and they have the same problem.

1- Is there any plan to fix this in lite-client?

2- Is there any workaround for now for calling get methods in client web apps using ton-access?

Sep 7, 2023, 9:19 AM
I've found a workaround, sharing it here in case anyone hit the same problem.

Problem
If you have a get method that uses network configs, using lite-client to call it will return an error.

Workaround on client environment
Use ton-access with v2 client, v4 will throw the same error. It looks like that v2 uses tonlib, while v4 uses lite-client internally.

Workaround on server environment
Use tonlib-cli instead of lite-client.
Oct 29, 2023, 5:41 AM

© 2024 Draquery.com All rights reserved.