andelf / tronpy

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

Unauthorized for url: https://api.trongrid.io/wallet/getsignweight #102

Closed lee-qinghua closed 1 year ago

lee-qinghua commented 1 year ago

i cant not find the method in AllowList Requested Api

reza-khalafi commented 1 year ago

@lee-qinghua Did you find any answer for this? I have this problem.

requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trongrid.io/wallet/getsignweight
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trongrid.io/wallet/getnodeinfo
MrNaif2018 commented 1 year ago

Maybe you didn't provide the necessary authorization for it?

reza-khalafi commented 1 year ago

@MrNaif2018 You mean need api_key in HTTPProvider? How to set it?

MrNaif2018 commented 1 year ago

I mean you answered your own question :D Tron(HTTPProvider(api_key="...")) I doubt default keys still work Also why even use trongrid if it's paid? Use ankr RPCs

reza-khalafi commented 1 year ago

@MrNaif2018 Thank you so much. It's works now.