Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Truffle Quick Start Guide
  • Toc
  • feedback
Truffle Quick Start Guide

Truffle Quick Start Guide

By : Bhaskar
5 (1)
close
Truffle Quick Start Guide

Truffle Quick Start Guide

5 (1)
By: Bhaskar

Overview of this book

Truffle is a world-class development environment, testing framework and asset pipeline for Ethereum, aiming to make life as an Ethereum developer easier. If you are a web developer wanting to try your hand at developing Dapps with Truffle, then this is the book for you. This book will teach you to write smart contracts and build Dapps with Truffle. You will begin with covering the basics of Truffle, briefly explaining how it integrates Solidity and Web3, in orderto start building a mini decentralized application. Also, you will dive into migration, testing and integrating Truffle with the use of popular JavaScript frameworks. Lastly, you will ship your decentralized application and package it into a product. Moreover, you will go through the best practices in Truffle,so as to increase your proficiency in building Dapps with Truffle. By the end of the book, you will be able to write smart contracts and build decentralized applications with Truffle on Ethereum blockchains.
Table of Contents (9 chapters)
close

Sync issues in Geth

When you attempt to sync to Geth, you will notice that quite often, Geth simply takes too long to sync. To combat this, many developers turn to Parity. It is simply a faster sync.

Another common mistake you will make is knowing for a fact that your account has a positive balance, but when you go to check the balance, you see that it has zero balance.

The reason for this is that you are probably not synced.

To ensure you are synced, while a Geth or Parity node is running, you can run the following code inside a JavaScript console:

 web3.eth.syncing

You may see a JavaScript object returned, such as this:

{
currentBlock: 236124,
highestBlock: 2947915,
knownStates: 1320304,
pulledStates: 1320304,
startingBlock: 236111
}

If you see this, it means you are still currently syncing on your Ethereum client. You can see the highest block, which is 2947915, and...

bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete