Truffle

Truffle is an Ethereum DApp end-to-end development tool that provides a development environment for writing, compiling, and deploying test smart contracts and DApps. You can write HTML, CSS, and JavaScript for the frontend; Solidity is for smart contracts, and uses the web3.js API to interact with the UI and smart contract. Truffle Boxes provide helpful boilerplates, which contain helpful modules, solidity contracts and libraries, frontend code, and many other helpful files. The Truffle Boxes help developers to quickly get started with their DApp project.

The Truffle command line uses the following formats:

  • truffle [command] [options]

Here are the frequently used options in command-line tools:

command

Description

compile

Compile solidity contract files.

console

Command-line interface to interact with deployed smart contracts.

create

This command helps to create a new contract, new migration file, and basic test.

debug

Experiment on a particular transaction in debugger sessions.

deploy/migration

Deploy a contract to the blockchain network.

develop

Interact with a contract via the command line in the local development environment.

init

Install a package from the Ethereum package registry.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.21.46.78