TRON - blockchain platform.
Questions tagged [tron]
182 questions
1
vote
1 answer
How to send TRX to a smart contract function in tronlink web
How can I send tron to a smart contract function in tronlink web.
I am trying the below method, but not working.
var contract = await tronweb.contract().at('{{env('CONTRACT_ADDRESS')}}')
await…

Haren Sarma
- 2,267
- 6
- 43
- 72
1
vote
1 answer
How to Check If Tron Address is a contract in TRC20
I am trying to get this code to work with the Tron network, here is a sample of what I seen online
function isContract(address account) internal view returns (bool) {
// According to EIP-1052, 0x0 is the value returned for not-yet created…

Akpah Peter
- 11
- 2
1
vote
1 answer
How to transfer trc20 with c#
I couldn't find a c # library for tron. I want to transfer via https://api.trongrid.io api.
There is a helper api tool at https://developers.tron.network/reference#trigger-smart-contract.
However, it is necessary to decode the…

S.ahmet BALCI
- 11
- 1
- 2
1
vote
2 answers
TronGrid API Get Transaction Sign not found
I'm using the TronGrid API to sign/broadcast my transcation, following the docs here: https://developers.tron.network/docs/api-sign-flow
However, when I try to sign my transaction using the API: https://api.trongrid.io/wallet/gettransactionsign API,…

l3utterfly
- 2,106
- 4
- 32
- 58
1
vote
0 answers
contract validate error : The originEnergyLimit must be > 0 . Tron ide error
I have trying to deploy contract at tron mainnet by tronide. but getting below error.
contract validate error : The originEnergyLimit must be > 0
TronIde Current Setting
FeeLimit = 400000000,
User Fee Percentage = 100
OriginEnergyLimit =…

Eithan pitt
- 841
- 9
- 12
1
vote
2 answers
How to get balanceOf of tron smart contract
I am using tronlink chrome extension and trying to call balanceOf method of a smart contract. I am very new to smart contract. Unable to find any solution. Please check my code:
let contractDetail = await…

Haren Sarma
- 2,267
- 6
- 43
- 72
1
vote
0 answers
Tron wallet integration in android application
I am developing a android application for TRON blockchain. I'm using Trust wallet library.
implementation 'com.trustwallet:wallet-core:2.3.9'
Sign transaction is almost done but for broadcasting I need raw_data_hex data .How can I get it.
code
…

Ansal Rabin
- 218
- 1
- 3
- 13
1
vote
1 answer
how to open tronlink wallet from chrome browser programmatically
I have installed tron link wallet extenstions in google chrome browser. I have a web application. I need to open this tron wallet from browser to do transaction. I do not need to open tronlink extension in pop-up window. It is OK if it is opening in…

Gurunath
- 341
- 3
- 17
1
vote
0 answers
Tron blockchain : Filters not working on get events
Trying to apply filter on contract event But it always return all records seems like filter not working.
this.CONTRACT_ADDRESS,
{
eventName: "InvoiceLog",
filters: { '_invoiceId': id.toString()},
}
…

Pardeep Kumar
- 11
- 1
1
vote
2 answers
Tron transactionBuilder error Cannot read property 'address' of undefined
I am getting this type of error Cannot read property 'address' of undefined while i am calling sendTRX function
{
const privateKey = "***";
var fromAddress = window.tronWeb.address.toHex("TR18f2revPbnb9dzFTqYQ5TKaBjX1QEtsC"); //address _from
var…

Sumit Sharma
- 11
- 2
1
vote
1 answer
Trouble Sending transaction using PHP curl and TRON api
I am playing around with the TRON api and trying to send transactions using the PHP curl method. I can successfully send the transaction in the TRON Developer sandbox but get and error when executing it on my server.
Error im receiving…

Ryan D
- 741
- 1
- 11
- 29
1
vote
1 answer
Await TronWeb send function to finish
Hi Im new in tron so I have succefully implemented read functions in smartcontract and also write but the issue im facing is how do I wait for the transaction to finish so I can display its result in tronWeb. I do know how to do it in ethereum 0.x &…

Syed Zain Hasan
- 93
- 7
1
vote
1 answer
can't call function in smart contract tron blockchain
I have a contract on the shasta test network. I create a contract inside my smart contract and save its address in an array, but i can't call function(i use tronweb) from contract which i create in smart contract. how i can call functions from…

modernToking
- 50
- 8
1
vote
4 answers
how to get correct address using ecrecover in tron
The code block of getting signer address via ecrecover in solidity contract code is working well with Ethereum but in TRON it is returning wrong address
My contract side code is
function validate(string memory strTest,uint8 v, bytes32 r, bytes32…

ashwin
- 125
- 4
1
vote
1 answer
How do I detect collisions between one rectangle and a previous position of another rectangle? Pygame
I am new to Python and programming in general, so I've decided to make a basic clone of Tron with 2 players. To clarify, Tron is a game where players are riding a bike that creates a path/trail behind them. If a player crashes into the path/trail of…

Navegante
- 25
- 1
- 4