Truffle

Truffle is a development environment used for smart contract compiling, deploying, testing and debugging.

Follow the Truffle documentation for general installation and overview.

Config Truffle for Velocity​

Update the config with Velocitycredentials

truffle-config.js

module.exports = {
  // See <http://truffleframework.com/docs/advanced/configuration>
  // for more about customizing your Truffle configuration!
  networks: {
    velocity: {
          provider: function() {
                return new HDWalletProvider(
               process.env.MNEMONIC,
               "https://rpc.velocitybtc.com")
          },
          network_id: **TBD**,
          gas: 1000000,
          gasPrice: 1000000000
    }
  }
};

Compile your Velocitycontract​

Default Compile​

  • Velocity Mainnet

Compile with Options​

  • Velocity Mainnet

Deploy your Contract​

  • Velocity Mainnet

Additional Truffle Documentation​

  • Additonal Truffle command documenation is located here.

Last updated