Return to site

DEV NOTES: resources to self-start with blockchain

The list to resources to make it easier to start develop projects on Ethereum


Last few weeks I had been working on gaining enough development experience with blockchain to start work on project for our client. Here is a list of resources which I found the most useful and share with you to make easier for you to start work with Ethereum.


Official documentation to get general overview

How to setup and run nodes on ethereum

How to deploy smart contracts on low level

The same as above, but with truffle - high level API

Development environment
Visual studio code

Known bugs and tips for common operations

Invalid number of arguments to Solidity function:

Proper truffle.js configuration (you also have to add gas value)

Get available funds
web3.fromWei(eth.getBalance(eth.coinbase), "ether")

web3.fromWei(eth.getBalance(eth.accounts[1]), "ether")

Setup right account for miner

truffle: assign a variable with accounts
web3.eth.getAccounts(function(err, res) { accounts = res; });

truffle: convert bytes32 back to string and backwards:

transfer currency from one account to another:

function sell(address transferTo)
      payable // make function payable
      // change the amount to the amount sent with the call (msg.value)          
// call from truffle console:

Test.deployed().then(instance => instance.sell( accounts[1],  {from: accounts[0], value: web3.toWei(1, 'ether') } )) How to get instance of the contract from address you supply
All Posts

Almost done…

We just sent you an email. Please click the link in the email to confirm your subscription!

OKSubscriptions powered by Strikingly