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