Deploying Contracts

Mrtr is a blockchain designed specifically for real estate transactions therefore all contracts deployed to Mrtr must relate to real estate activities. Currently the testnet is open to any smart contract deployment but in the future we will create a governance board around accepting new real estate protocols to the Mrtr testnet and mainnet.

To deploy using hardhat, add our network details to hardhat.config.js:

module.exports = {
  solidity: '0.8.4',
  defaultNetwork: 'hardhat',
  networks: {
    hardhat: {
      chainId: 1337,
    },
    mrtrTestnet: {
      url: NODE_URL, // http://35.238.106.48:8545 
      accounts: [`0x${WALLET_PRIVATE_KEY}`],
      gasPrice: 2, // default Metamask gas price
    }
  },
}

Last updated