andelf / tronpy

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

Got 403 Forbidden when use AsyncTron #126

Closed StasFQ closed 8 months ago

StasFQ commented 9 months ago

when I using this code: txb = ( client.trx.transfer(address_from, address_to, amount) .memo("test memo") .fee_limit(100_000_000) ) txn = await txb.build() txn_ret = await txn.sign(priv_key).broadcast() I got this error.How to fix that? Client error '403 Forbidden' for url 'https://api.trongrid.io/walletsolidity/getnowblock' For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403

MrNaif2018 commented 8 months ago

Most likely either trongrid has banned your ip, or it requires an ip key Try ankr rpc https://rpc.ankr.com/http/tron