TRON - blockchain platform.
Questions tagged [tron]
182 questions
0
votes
0 answers
Value stored in smart contract changed unexpectedly
This smart contract is deployed on tron blockchain. It has a variable named "dividendPool". Its value changed unexpectedly. Does anyone faced this strange issue?

ankur
- 111
- 4
0
votes
1 answer
TronBox compile issue
I've installed the latest tronbox (2.7.5) using npm
Created a new project using command tronbox init
In file tronbox.js I've updated the compiler version to 0.4.25 (see the file below).
When compiling using the command tronbox compile --compile-all…

forhas
- 11,551
- 21
- 77
- 111
0
votes
1 answer
Nodejs return result from function is empty promise
I am trying to use Nodejs tron library to create pair of wallet address and here is my code:
app.js
var app = require('express')()
var http = require('http').createServer(app)
var wallet_engine = require('./function')
app.get('/', function (req,…

Sina Nouri
- 111
- 3
- 13
0
votes
1 answer
how to generate Trx wallet without using API
base on TRX documents and some search in GitHub I tried to generate wallet offline and I can't use API for some reasons.
based on Trx documents I should do these steps :
Generate a key pair and extract the public key (a 64-byte byte array…

M.D
- 67
- 1
- 2
- 12
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
0
votes
1 answer
How to create TRON transaction?
I installed Tronbox and want to deploy smart contract. But before that, I want to create a transaction for which I have private key and address. So, I installed tron-api-cli, followed instruction from link https://www.npmjs.com/package/tron-api-cli.…

Varsh
- 413
- 9
- 26
0
votes
1 answer
Error for TronBox initialization or command related to TronBox
I am completely new to Tron. I need to deploy contract using TronBox. I am following steps from this link https://developers.tron.network/docs/tron-box-user-guide. for command tronbox init it is giving following error:…

Varsh
- 413
- 9
- 26
0
votes
2 answers
Why Sender address emitted in event differs from saved in storage?
The wallet address that is sent through event differs from the one stored in contract
Hi, I have a contract that is deployed to development network through truffle.
I trigger function that looks like this:
struct Round {
bool isValue;
…

1099511627776
- 176
- 1
- 18
-1
votes
0 answers
Blockchain TRON: FAILED -TRANSACTION REVERT
I am looking for solution why transaction reverted
My address
TUX9813ndeSYAfmNdC39z9H5Re5hRsHVQd
There is a contract that acts as a wallet, which has an authorised address that can call the transfer functions from the contract balance
we can…

iamgor
- 1
-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
-1
votes
1 answer
I am trying to create a react website and add hooks in it but face this erros
import { useState } from "react";
const TronWeb = require("tronweb");
const [lpLogged, setlpLogged] = useState(true);
async function getTronWeb() {
if (window.tronWeb && window.tronWeb.defaultAddress.base58) {
return window.tronWeb;
…

harsh
- 5
- 4
-1
votes
1 answer
I want to call smart contract method function at php on tron blockchain
I have deployed smart contract on tron.
I want to call smart contract method function at php on tron blockchain.
please help me.
My skype id is live:.cid.6f4ac54533c89f00
Thank you.

blockchain
- 1
- 1
-1
votes
1 answer
Does binary tree efficient in solidity? iethereum/tron network
Does storing/searching/writing binary tree is efficient enough from gas perspective?
Let say I have node A. and new node B. node B should be placed at the first available place in the subtree starting from Node A. After that, we need traverse from…

Sergii Zinkevych
- 67
- 6
-1
votes
1 answer
Convert crypto wallet address in lowercase to correct format
I'm collecting many types of cryptocurrency address(e.g btc,trx,eth), but some address are came with address.lowercase . I want to correct them.
In case of ethereum, if I use eip55 in lowercase eth address, I can correct them. But in the other case,…

Moon Seok Lee
- 41
- 3