TRON - blockchain platform.
Questions tagged [tron]
182 questions
1
vote
1 answer
How I can get USDT TRC20 token balance with python?
I use the code that the Tron api generates and get a 200 response code ('ok'), but I don't get any information about the balances.
Code
import requests
#wallet = 'TWMsYUtqEAPxs7ZXuANkpABqGcixK3XZJD'
url =…

PEPPA PIG
- 15
- 4
1
vote
1 answer
Tron - Sign a transaction in JS (NodeJS)
I am trying to sign a build & sign transaction then create a hex to broadcast the transaction on TRON Network.
I have successfully done this but when i broadcast this transaction i am getting "TRON TAPOS_ERROR" error.
I have searched and got the…

SamXcodeX
- 11
- 1
1
vote
2 answers
Can we have an account with multiple receiving addresses(public address) in BSC or Tron?
Can we have an account with multiple receiving addresses (public key) in the Binance Smart Chain or Tron? How are exchange wallets defined for users in these two networks (I think they don't have a custodial wallet for each user)?

softweng
- 173
- 2
- 9
1
vote
0 answers
Sending TRX with tronpy
I'm using tronpy library to send trx, here is my code:
from tronpy import Tron
from tronpy.keys import PrivateKey
# integers representing half & one Tron
HALF_TRON = 500000
ONE_TRON = 1000000 #equals 1 TRX
# your wallet information
WALLET_ADDRESS…

Goorhatar
- 19
- 2
1
vote
1 answer
Unable to load dependencies in java project
I'm new to java, so sorry if my question seems silly to some. I am trying to add a library for working with the Tron blockchain network to the project dependencies (https://github.com/tronprotocol/tronj).
The instructions indicate that I need to add…

Neon RolePlay
- 11
- 1
1
vote
0 answers
How to make a USDT TRC20 transfer using a private key?
I want to find out how you can send TRC-20 with a private key. In the documentation, I found a method for creating a smart contract. But I can't figure out how to get "owner_address" and "contract_address"
import requests
url =…

blankerino
- 19
- 1
1
vote
0 answers
Solidity Smart Contract on Tron - error on get contract with tronWeb
I've developed a Smart Contract on Tron ShastaNet. A previous similar contract was generated, and using it with tronWeb I don't have any issue.
With this new contract, I got this error on Browser Console:
TypeError: Cannot read properties of null…

Klode
- 353
- 3
- 18
1
vote
2 answers
Creating a TRX raw transaction
I want to create a raw transaction (without signing it) and get its hash in hex format. The official TRON API normally returns a JSON for creating transactions. Does anybody know how to do this?

Foad
- 109
- 2
- 9
1
vote
3 answers
How to find public address through private key on TRON
How can I find user public address from his private key ?
Already I found a way to convert public to hex Address also private to hex and reverse
but get stuck in this one !

mistelo
- 68
- 7
1
vote
2 answers
Send reward to a token holders in smart contracts
How can I send tokens to a token holders from inside a smart contract with solidity?
It means how can send reward to token holders?

M.Alaghemand
- 105
- 2
- 6
1
vote
1 answer
Solidity - Send array of tuple data with address and amount
I'm working on a Solidity Smart Contract for Tron Network.
I want the owner can set an array of address => uint. This is the code:
pragma solidity ^0.8.0;
struct singleUser {
address user;
uint amount;
}
mapping(address=>uint) private…

Klode
- 353
- 3
- 18
1
vote
0 answers
How to get multiple account balances in trc20 network
I'm developing a dapp with node.js and i have several wallets that I need to check their balances in a short amount of time. when I make a for loop in my wallet addresses and check them individually. I get 503 error from tronweb(I have tried the API…

Erfan Poursina
- 119
- 1
- 4
- 8
1
vote
1 answer
Tron Network with OpenZeppelin Contracts
The Tron Network uses Solidity and has a lot of similarities to Ethereum.
I'm trying to use the OpenZeppelin contracts designed for Ethereum to run on the Tron Network.
I've chosen Solidity version 0.6.x which is supported by the tronbox…

webish
- 701
- 2
- 9
- 17
1
vote
1 answer
Deploy a pruned Tron (TRC20) node
Tron main net (TRC20) is about 500GB nowadays and needs much server config!
I'm searching for a way to prune the network like the pruning method in Bitcoin nodes or light or fast sync modes in Ethereum Blockchain.
Does anybody know a way to do that?

Amin
- 421
- 5
- 7
1
vote
1 answer
How do I listen for trx events on tron network? (Tronweb) nodejs
I already know that with this method "tronweb.contract().at(contractAddress).Transfer.watch()" I can listen to transfer events of a specific contract, but what I don`t know is that how can I listen for TRX intself?

ADLZ
- 75
- 1
- 4