PlatON Python SDK

Hello Alaya/Platon community.

I am experiencing some difficulties when trying to make use of the sdk with python sdk.
Below is my code snippet:
2021-07-12 20_06_20-acctest.py - client-sdk-python - Visual Studio Code

The error message I get below:
2021-07-12 20_08_35-acctest.py - client-sdk-python - Visual Studio Code

Please what could cause the error and how to fix it.

1 个赞

如果你是在开发网,那应该传入latxxxxx这样的地址格式

1 个赞

你的address的前缀为lax,链上为lat,导致了这个错误,你需要修改你的地址。 同时,在实例化web3的时候,一般会传入chain_id和hrp_type。

1 个赞

Thank you @shinnng and @George.Cross
The address was indeed the problem, changed it to that of lat and it worked!

1 个赞