Questions tagged [tronweb]
55 questions
0
votes
1 answer
Cant get TRON contract ABI from Trongrid
For some TRON contracts i am not able to get ABI. Eg using https://developers.tron.network/reference#smart-contracts for this one:
contract - TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE
curl --request POST \
--url https://api.trongrid.io/wallet/getcontract…

DarDev
- 153
- 1
- 1
- 9
0
votes
1 answer
Unable to verify TronLink/TronWeb.js signed message in Python
I am signing a message using TronLink/TronWeb.js but unable to verify it in Python
Python Library I am using https://github.com/iexbase/tron-api-python/
Javascript Code for Signing Message:
const original_message =…

Abdullah Mallik
- 740
- 8
- 21
0
votes
0 answers
In My Case I got: app.js:1 Uncaught ReferenceError: require is not defined
I can't found for exactly my example any solution.
app.js:
const TronWeb = require("tronweb");
const tronWeb = new TronWeb({
fullHost: "https://api.shasta.trongrid.io"
});
const publicAddress =…

progy85
- 31
- 7
0
votes
1 answer
How to get all event logs of the contract in tron network using tronweb in node js without any limit?
How to get all events logs of the contract in tron network using tronweb in node js without any limit? or is there need of any middle ware storage like redis, etc?
Need to get all data at once before loading dapp home page. The dApp is made in react…

Manish Sharma
- 210
- 3
- 12
0
votes
3 answers
TronWeb to send trc20 usdt
I want to use TronWeb to send trc20 token. Whether I need to use contract().at() to do this? It means I need to treat trc20 token just as smart contract?

Louis
- 101
- 1
- 1
0
votes
1 answer
Nodejs fix [object Promise]
i want to get the balace of the tron wallet.
when i want to return it to show it on the web page with expressjs it print [object Promise]
var express = require('express');
var router = express.Router();
const TronWeb = require('tronweb');
const…

Mohammad Raufzahed
- 13
- 4
0
votes
1 answer
Always returning empty array of arrays, although it's showing successful transaction on Shasta Network
I'm trying to get back all the struct type records from my solidity contract function please see the below solidity contract code snippet
struct Record {
uint _id;
string _countryCode;
string _state;
string _postal;
string…

Shailesh Rathod
- 157
- 10
0
votes
0 answers
TronWeb in a web browser
I've seen some examples that use tronweb in a web application. I would think that seems unsecure. Even the documentation says not to use it in a public/user facing application. Is there a way to use tronweb in a browser (ie, javascript code…

Victor P
- 1,496
- 17
- 29
0
votes
0 answers
How to fix 'Uncaught (in promise) TypeError' in JavaScript/Solidity
I am trying to access some values from the contract to display on the front end. I did this by calling some getter methods, only two of the three work and for the third, I get this "Uncaught (in promise) TypeError: Cannot read property 'tronWeb' of…

CryptoGrounds
- 21
- 4
-1
votes
1 answer
How to listen for smartcontract events and filter by receiver with Tron
I'm trying to listen a specific event in USDT smartcontract on Tron blockchain. I want to update a database when a payment has been made to my address.
In order to do that, I use TronWeb. Here is my code :
const fullNode =…

Remi_la
- 9
- 3