Skip to Content
Mastering Blockchain Programming with Solidity
book

Mastering Blockchain Programming with Solidity

by Jitendra Chittoda
August 2019
Intermediate to advanced
486 pages
13h 52m
English
Packt Publishing
Content preview from Mastering Blockchain Programming with Solidity

Updating the configuration

You can uncomment the appropriate sections present in the default Truffle configuration file. By default, the Ropsten testnet network configuration is present in the Truffle configuration file. Similarly, we have prepared the configuration for the Rinkeby testnet network:

const HDWalletProvider = require('truffle-hdwallet-provider');const infuraKey = "138bdb3fed8f4c96b812327d76be8a08";const fs = require('fs');const mnemonic = fs.readFileSync(".secret").toString().trim();......rinkeby: {  provider: () => new HDWalletProvider(mnemonic,   'https://rinkeby.infura.io/v3/${infuraKey}', 0, 20),  network_id: 4,  gas: 6000000,  gasPrice: 10000000000,  confirmations: 2,  timeoutBlocks: 200,  skipDryRun: true},

Let's understand each ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Ethereum

Mastering Ethereum

Andreas M. Antonopoulos, Gavin Wood
Complete Cryptocurrency and Blockchain Course | Learn Solidity

Complete Cryptocurrency and Blockchain Course | Learn Solidity

Ravinder Deol, Codestars By Rob Percival, Thomas Wiesner

Publisher Resources

ISBN: 9781839218262Supplemental Content