Deploy Smart Contracts to Testnet8
Deploy instructions
For more detailed instructions on how to deploy smart contracts, see our documentation at the link
Below in this instruction we will provide the settings for connecting to the node
Settings for public connection
Metamask
- Network Name:
Waterfall 8 Test Network
- RPC URL:
https://rpc.testnet8.waterfall.network/
- Chain ID:
8601152
- Currency symbol:
WATER
- Block Explorer URL: https://explorer.testnet8.waterfall.network
- Faucet: https://faucet.testnet8.waterfall.network
More detailed information on how to put these settings in our documentation
Hardhat
According to the instructions, you need to change the following settings:
require("@nomicfoundation/hardhat-toolbox");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
waterfall: {
url: "https://rpc.testnet8.waterfall.network",
chainId: 8601152,
accounts: ['07201008f00b31de405a0af22ff04871044e027878929b7b47569ca76555ff09'], // Private key from your account
}
},
solidity: "0.8.16",
};
Truffle
According to the instructions, you need to change the following settings:
module.exports = {
networks: {
waterfall: {
from: 'a7062A2Bd7270740f1d15ab70B3Dee189A87b6DE', // Your Deployer Account
provider: () => new HDWalletProvider({
privateKeys: ['07201008f00b31de405a0af22ff04871044e027878929b7b47569ca76555ff09'], // Private key from your account
providerOrUrl: `wss://rpc.testnet8.waterfall.network/ws`
}),
network_id: 8601152,
confirmations: 5,
websocket: true,
skipDryRun: true,
}
},
compilers: {
solc: {
version: "0.8.16"
}
}
};
Settings for local connection
If you started the node according to the following instructions, then you can tune in to the local node
Metamask
- Network Name:
Waterfall 8 Test Network
- RPC URL:
http://127.0.0.1:9545
- Chain ID:
8601152
- Currency symbol:
WATER
- Block Explorer URL: https://explorer.testnet8.waterfall.network
- Faucet: https://faucet.testnet8.waterfall.network
More detailed information on how to put these settings in our documentation
Hardhat
According to the instructions, you need to change the following settings:
require("@nomicfoundation/hardhat-toolbox");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
waterfall: {
url: "http://127.0.0.1:9545",
chainId: 8601152,
accounts: ['07201008f00b31de405a0af22ff04871044e027878929b7b47569ca76555ff09'], // Private key from your account
}
},
solidity: "0.8.16",
};
Truffle
According to the instructions, you need to change the following settings:
module.exports = {
networks: {
waterfall: {
from: 'a7062A2Bd7270740f1d15ab70B3Dee189A87b6DE', // Your Deployer Account
provider: () => new HDWalletProvider({
privateKeys: ['07201008f00b31de405a0af22ff04871044e027878929b7b47569ca76555ff09'], // Private key from your account
providerOrUrl: `ws://127.0.0.1:9546`
}),
network_id: 8601152,
confirmations: 5,
websocket: true,
skipDryRun: true,
}
},
compilers: {
solc: {
version: "0.8.16"
}
}
};
The version of the Solidity compiler and the version of the smart contract code must match.