hi,
this.tronWeb = new TronWeb({
fullHost: this.settings.fullHost,
});
const signedTxn = await this.tronWeb.trx.sign(tradeObj, privateKey);
Running this code cause error:
POST /wallet/getblock HTTP/1.1\r\nAccept: application/json, text/plain, /\r\nContent-Type: application/json\r\nTRON-PRO-API-KEY: 405cc803-c56a-40aa-a158-f7442de337e2\r\nUser-Agent: axios/1.7.2\r\nContent-Length: 16\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:9090\r\nConnection: keep-alive\r\n\r\n"
running docker by : docker run -d -it --rm
-p 9090:9090
-e "defaultBalance=10000000000"
-e "showQueryString=true"
-e "showBody=true"
-e "mnemonic=***"
-e "accounts=1"
-e "formatJson=true"
--name tron
trontools/quickstart
When i just change local tron testnet to https://api.shasta.trongrid.io, my code runs well. Soo the error must be in this repo.
hi,
this.tronWeb = new TronWeb({
fullHost: this.settings.fullHost,
});
const signedTxn = await this.tronWeb.trx.sign(tradeObj, privateKey);
Running this code cause error:
POST /wallet/getblock HTTP/1.1\r\nAccept: application/json, text/plain, /\r\nContent-Type: application/json\r\nTRON-PRO-API-KEY: 405cc803-c56a-40aa-a158-f7442de337e2\r\nUser-Agent: axios/1.7.2\r\nContent-Length: 16\r\nAccept-Encoding: gzip, compress, deflate, br\r\nHost: localhost:9090\r\nConnection: keep-alive\r\n\r\n"
running docker by : docker run -d -it --rm
-p 9090:9090
-e "defaultBalance=10000000000"
-e "showQueryString=true"
-e "showBody=true"
-e "mnemonic=***"
-e "accounts=1"
-e "formatJson=true"
--name tron
trontools/quickstart
When i just change local tron testnet to https://api.shasta.trongrid.io, my code runs well. Soo the error must be in this repo.