Skip to content

A Vue based Tron example dApp with tronweb, tronlink, tronbox and vue-cli

License

Notifications You must be signed in to change notification settings

jishankai/tron-starter-dapp

Repository files navigation

Tron starter dApp

This project was generated with vue-cli version 3.2.1

A Vue based Tron example dApp with tronweb, tronlink, tronbox and vue-cli

Demo

Update a value of a smart contract with your Tronlink wallet address

Project setup

A TronLink account is required for this dApp to work!

Download Tronlink here

Get some free test TRX coins from here to get some balance on your account

Install dependencies

npm install

Update the .env file

VUE_APP_SHASTA_PRIVATE_KEY="Your key"

Run the development server

npm run serve

Compile your own smart contracts

Add your smart contract to the /contracts folder

Install tronbox

npm install -g tronbox

Compile the contract

tronbox compile

Migrate the contract

tronbox migrate --network shasta

Change the current address to your deployed contract address

  let contractInstance = await tronWeb
      .contract()
      .at("Your deployed contract address");

About

A Vue based Tron example dApp with tronweb, tronlink, tronbox and vue-cli

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published