andelf / tronpy

TRON Python Client Library.
MIT License
204 stars 96 forks source link

Shielded TRC20 #67

Closed karapy closed 1 year ago

karapy commented 1 year ago

<tronpy.tron.Tron object at 0x0000018C27137FA0> client.generate_zkey() Traceback (most recent call last): File "", line 1, in File "C:\Users\wallet\venv\lib\site-packages\tronpy\tron.py", line 498, in generate_zkey return self.provider.make_request("wallet/getnewshieldedaddress") File "C:\Users\wallet\venv\lib\site-packages\tronpy\providers\http.py", line 80, in make_request resp.raise_for_status() File "C:\Users\wallet\venv\lib\site-packages\requests\models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://api.trongrid.io/wallet/getnewshieldedaddress

danielqba commented 1 year ago

When I go to that url, I get this:

TronGrid service does not support this API

Maybe it's trongrid fault this time?

karapy commented 1 year ago

is there anyway to do most task locally offline? onething that I am looking for is to be able to have tron node in prune mode and notification service like what we have in bitcoin node

is there anyway to do most task locally offline? onething that I am looking for is to be able to have tron node in prune mode and notification service like what we have in bitcoin node

andelf commented 1 year ago

These are unsafe APIs blocked by official trongrid. You should deploy a local node. Or else, there's a https://github.com/opentron/opentron/tree/master/ztron local implementation.