Questions tagged [tron]

TRON - blockchain platform.

182 questions
8
votes
4 answers

How to programmatically validate Tether (TRC20) Wallet Addresses in PHP?

I am having an issue related to validating cryptocurrency wallet addresses, specifically USDT. USDT can be validated either as a BTC or ETH address, depending on the network type. Basically it goes like that: If cryptocurrency is USDT and chain…
GeorgeKaf
  • 599
  • 8
  • 23
8
votes
3 answers

How to get TRC20 transactions to an address

I am using tron web to query transactions of an address but it does not return transactions sent to that address where token transferred is TRC20. This does not work. I want to get the transactions on an address and get both TRX, trc10 and trc20…
Oluwatumbi
  • 1,321
  • 1
  • 12
  • 19
6
votes
3 answers

How to create a tron wallet with nodejs?

I want to create a TRON web wallet but I am a complete noob. My first question is how do I generate addresses offline and with a private master key or with a mnemonic seed. The second question is how can I query the balance of all addresses…
ADLZ
  • 75
  • 1
  • 4
5
votes
1 answer

If one smart contract reads data from another smart contract, does it costs gas?

When one contract's function read data from second contract's function (that is, there is no state change on the second contract). Does it consumes gas?
ankur
  • 111
  • 4
5
votes
0 answers

Tronweb not listening events conistently

I am creating a dapp on tron and using tronweb npm package. I am using its watch() to listen for events but it sometimes misses the event. Does anyone facing the same problem? Is there any alternative for that?
ankur
  • 111
  • 4
5
votes
0 answers

is it possible to trigger Tron smart contract from tronweb and Azure key vault

i'm thinking of developing a bridge between Tron and Ethereum chains for my erc-20 token on Azure and store my private keys in Azure key vault. For ethereum i've found a nice library just for this:…
4
votes
1 answer

Using walletconnect v2.0 with TRON network

As per TRON docs (https://developers.tron.network/docs/walletconnect-tron), its now possible to connect the TRON network with walletconnect v2. Within the tron api @tronweb3/walletconnect-tron, these are the specifications to pass walletconect…
ANF3R
  • 41
  • 1
4
votes
2 answers

Find Tron Energy Estimate Before transaction?

i want to calculate energy before transaction in tron blockchain, So we can show end users fees for transaction before transaction in app. But i am din't able to find any docs or any function any api for this. please help me in this.
4
votes
2 answers

How to estimate TRC20 token transfer gas fee

I am looking for a method to estimate bandwidth/gas transfer for TRC20 tokens. Like we have in Ethereum myContract.methods.myMethod(123).estimateGas({from: 'ERC20 address'}) .then(function(gasAmount){ ... }) …
Antier Solutions
  • 1,326
  • 7
  • 10
4
votes
2 answers

Sign and broadcast smart contract transaction in TRON network

Using a node.js client, I'm trying to invoke a smart contract function by: Creating a transaction Signing it Broadcast the signed transaction I deployed a simple smart contract: pragma solidity ^0.4.25; contract Test { event MyEvent(address…
forhas
  • 11,551
  • 21
  • 77
  • 111
4
votes
4 answers

How to convert TRON address to different format

I have an issue while deploying contract in TRON network, where I am required to specify address in format that starts with 4.. or when I receive transactions history (here the api respond with 4.. addresses as well). Therefore I have a…
newbie
  • 71
  • 1
  • 1
  • 4
3
votes
1 answer

send token by contract with python causing error: Validate TransferContract error, no OwnerAccount

I want to send a token by this (tron-api-python) library but I received an error When I send the Trx, there is no problem and it is sent, but when I want to send the desired token using the smart contract, I get an error. from tronapi import…
Mr2C2R
  • 65
  • 4
3
votes
2 answers

Tron TRC20 HD Wallet for generate multi deposit address for one account

I created an account with: TronWeb.utils.accounts.generateAccount() Now I want to create child address of above account for every users. When users deposit to these addresses, I want to manage balance from main account and transfer to another users…
ABP
  • 692
  • 4
  • 21
3
votes
1 answer

Tron API works not as described in documentation

After I run fresh Tron node with the command docker run -it -p 9090:9090 --rm --name tron trontools/quickstart I'm trying to get blocks: curl -X POST http://127.0.0.1:9090/wallet/getblockbylimitnext -d '{"startNum": 1, "endNum": 2}' But instead…
Vassily
  • 5,263
  • 4
  • 33
  • 63
3
votes
1 answer

Laravel 5.8: How to pass two arguements to Event & Listener

I'm using Laravel 5.8, and I have created an Event called UserWalletNewTransaction that goes like this: public $transaction; public $added_type; public function __construct($transaction, $added_type) { $this->transaction = $transaction; …
user9277271
1
2 3
12 13