Tron (TRX) DApp Tutorial 2 – Setting Up Tronbox Sample Project


Tron (TRX) DApp tutorial series will help you learn how to build DApps (decentralized applications) on Tron Blockchain with the help of TronBox, TronWeb and Shasta test network. Since the launch of TRON Virtual Machine, and a full suite of developer tools, developers can easily deploy smart contracts and build new DApps.

– This tutorial series is intended to give you the basic idea about how to work on Tron DApps.

– Feel free to comment your questions below. I will do my best to answer your question.

– Please subscribe to our channel, because that will help me sustain on YouTube and create more awesome tutorials like this..!

– Like this video if you found it helpful.

————————————————————
GitHub link :

————————————————————
References :

1. Tron Homepage :
2. TronBox Sample Project Link :

————————————————————
CodeXpert links :

Website : thecodexpert.org
Discord :
Youtube :
Twitter :
Telegram :

————————————————————
Donate Bitcoin : 34UTkFhPpfq9jNFNSDsNcWHpeTPfngBTiW

Donate Tron : TBNRZTvyvrZk9Ujc28TTi6JGYd19rEjtN8

————————————————————
Note : Trading and handling cryptocurrency and products/services is risky. We are not responsible for any loss of funds or damages. The opinions expressed in this video are just for the information and viewers should do their own research before using products/services discussed in the video.

30 gedachten over “Tron (TRX) DApp Tutorial 2 – Setting Up Tronbox Sample Project”

  1. hello, I'm trying to deploy it into shasta network, but it said I'm OUT_OF_ENERGY.
    when I checked it on tronscan, it is indeed showing that my energy is 0.
    I could freeze my balance to gain bandwidth and power, but my energy stay at 0.

  2. Hello, When compiling "tronbox compile –compile–all

    " result is : Could not find suitable configuration file.

  3. Hey I am getting following error while migrating.
    ERROR: NOT_ENOUGH_EFFECTIVE_CONNECTION (effective connection:0 lt minEffectiveConnection:1) while broadcasting the transaction to create the contract Migrations

  4. Your music game has taken a big step up since your early tutorials

  5. Hi, when i use "tronbox compile –compile–all" nothing is happening, any idea ? (windows)

  6. im using window , what terminal should i use , i stucked at it. i successfully cloned the link , having problem afterward including compiling , etc . could you guide me

  7. it's not working properly, getting an error:

    Failed to compile

    ./src/components/App/index.js

    Module not found: Can't resolve 'assets/banner.png' in 'C:UsersAdministratorTronLink-Demo-MessagessrccomponentsApp'

    tested it on desktop win7 and on vds win server 2008, same result in both enviroments

    the link to download demo messages is not working as well, so I just copied message pack from your github, maybe it's what causing the problem

  8. ./src/components/App/index.js
    Module not found: Can't resolve 'components/TronLinkGuide' in '/Users/briannguyen/tron-dapps/helloworld/src/components/App'
    What is this error when I open localhost:3000
    ???

  9. When I execute tronbox migrate –reset –network shasta, I am getting this error
    (node:9078) UnhandledPromiseRejectionWarning: Error: Invalid URL provided to HttpProvider

    at new e (/usr/lib/node_modules/tronbox/build/webpack:/packages/tronwrap/tronweb/dist/TronWeb.node.js:1:16497)

    at Object.create (/usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-provider/index.js:70:1)

    at Config.get [as provider] (/usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-config/index.js:278:1)

    at /usr/lib/node_modules/tronbox/build/webpack:/~/truffle-expect/index.js:4:1

    at Array.forEach (<anonymous>)

    at Object.options (/usr/lib/node_modules/tronbox/build/webpack:/~/truffle-expect/index.js:3:1)

    at Object.run (/usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-migrate/index.js:134:1)

    at /usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/commands/migrate.js:99:1

    at Object.needsMigrating (/usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-migrate/index.js:292:1)

    at runMigrations (/usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/commands/migrate.js:94:1)

    at /usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/commands/migrate.js:125:1

    at /usr/lib/node_modules/tronbox/build/webpack:/packages/truffle-core/lib/environment.js:65:1

    at cb (/usr/lib/node_modules/tronbox/build/webpack:/packages/tronwrap/index.js:146:1)

    at axios.get.then.catch.err (/usr/lib/node_modules/tronbox/build/webpack:/packages/tronwrap/index.js:174:1)

    at process._tickCallback (internal/process/next_tick.js:68:7)

    (node:9078) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)

    (node:9078) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

  10. Thank you for the tutorial.
    I hit alot of errors while , triggering NPM install.

    Errors include permision denied to git@github.com

  11. sir I am building one DAPP using ethereum and solidity, which requires user authentication and storing user data in database, so my question is that which database should I use and how to store that data.
    Please reply sir.

  12. hi I tried the sample code template as you said today Sorry I am new bee in TRON ecosystem. While running system I run with this error – chetan@linux:~/tronprojects/ThisIsCodeXpert_gitSampleCode/CodeXpert-Tron-DApp-Template$ tronbox compile –compile-all
    Error parsing /home/chetan/tronprojects/ThisIsCodeXpert_gitSampleCode/CodeXpert-Tron-DApp-Template/contracts/Election.sol: ParsedContract.sol:3:1:
    ParserError: Source file requires different compiler version (current compiler is 0.5.4+commit.7b0de266.mod.Emscripten.clang)
    Compilation failed. See above.

    Can you guide me.

  13. when typing "tronbox compile –compile-all
    " i got these:
    Error parsing C:/Users/ALVIN PADRON/Desktop/project1/kookiekrak-TronLink-Demo-Messages/contracts/TRXMessages.sol: ParsedContract.sol:3:1:

    ParserError: Source file requires different compiler version (current compiler is 0.5.4+commit.7b0de266.mod.Emscripten.clang)

    Compilation failed. See above.

    Also, I renamaed tronbox.js to tronbox-config.js because microsoft wont let me run it. I read the trick in the comments section and it ran. but then i get this error.

    what to do? thanks!

  14. while compiling TRXmessages using 0.5.4 in TRONIDE, i get this error.

    browser/TRXMessages.sol:40:26: TypeError: Data location must be "memory" for parameter in function, but none was given.

    function postMessage(string message) public payable

    ^————^

    If i dont recompile it and use the original 4.24, i get the error "Error parsing C:/Users/ALVIN PADRON/Desktop/project1/kookiekrak-TronLink-Demo-Messages/contracts/TRXMessages.sol: ParsedContract.sol:3:1:

    ParserError: Source file requires different compiler version (current compiler is 0.5.4+commit.7b0de266.mod.Emscripten.clang)

  15. after typing migrate, i get these. "Error: Invalid URL provided to HttpProvider"

  16. Hey bro.. I am new at this can u tell me how to start a own contract.. What step is to be taken in begining

  17. Hello, could you guide me to interact with my smart contract in Tron, but not with localhost, but from a web page.

  18. npm tries to download all files from this site https://tronwatch.github.io/ unfortunately this address is down and does not load
    , when you try to install tronbox or compile this project vscode attempts to connect this address and can not find anything

  19. Greetings, very good tutorial … I followed the steps one by one and I was able to implement it in the shasta network and the dapp is running on my pc by localhost: 3000, in case I want to mount that dapp in a private hostig with my domain ( http://www.myweb.com) to see it online, what are the steps to follow?

  20. @CodeXpert
    tried tronbox compile this error shows
    Source file requires different compiler version (current compiler is 0.5.4+commit.

  21. If you built it in Windows pc maybe all of us will help more . Because of many people are not using mac. Hope you understand.

  22. tronbox compile –compile–all

    Could not find suitable configuration file.

    please solve this issue

  23. while running tronbox migrate –reset –network shasta
    i revived the below error
    throw new Error('Invalid URL provided to HttpProvider');

Reacties zijn gesloten.