# How to deploy smart contract using Truffle on Shardeum? **Published by:** [easycrypto123](https://paragraph.com/@lokilu/) **Published on:** 2023-02-11 **URL:** https://paragraph.com/@lokilu/how-to-deploy-smart-contract-using-truffle-on-shardeum ## Content Shardum is a blockchain platform for decentralized applications, and Truffle is a development framework for Ethereum-based blockchain applications. You can deploy a smart contract on Shardum using Truffle by following these steps: Install the Truffle CLI: To deploy a smart contract using Truffle, you need to have the Truffle CLI installed on your computer. You can install it by running the following command: npm install -g truffle Create a new Truffle project: Open a terminal and navigate to the directory where you want to create your project. Then run the following command: truffle init Write your smart contract: Create a new file in the contracts directory of your project, and write your smart contract in Solidity. Create a migration script: In the migrations directory, create a new migration script to deploy your smart contract. The script should include the following code: javascriptCopy codevar MyContract = artifacts.require("MyContract"); module.exports = function(deployer) { deployer.deploy(MyContract); }; Configure your Truffle project for Shardum: Open the truffle-config.js file and add the following code: yamlCopy codemodule.exports = { networks: { shardum: { host: "your-shardum-node-address", port: 8545, network_id: "*" } } }; Deploy your smart contract: Open a terminal and navigate to the root of your Truffle project. Then run the following command to deploy your smart contract: truffle migrate --network shardum Verify the deployment: You can verify that your smart contract has been deployed successfully by checking the blockchain explorer of Shardum. ## Publication Information - [easycrypto123](https://paragraph.com/@lokilu/): Publication homepage - [All Posts](https://paragraph.com/@lokilu/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@lokilu): Subscribe to updates - [Twitter](https://twitter.com/loki19860228): Follow on Twitter