# Deploying your first contract to Polkadot in 5 minutes ![polkadot-black](https://hackmd.io/_uploads/r1d2kdamyl.png) This tutorial will guide you on deploying a Solidity smart contract to Polkadot on [Asset Hub (Westend)](https://polkadot.js.org/apps/?rpc=wss%3A%2F%2Fwestmint-rpc-tn.dwellir.com#/explorer). ## Recommended listening track: <iframe width="100%" height="166" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1910648045&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe><div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;"><a href="https://soundcloud.com/moldovansound" title="Moldovan" target="_blank" style="color: #cccccc; text-decoration: none;">Moldovan</a> · <a href="https://soundcloud.com/moldovansound/feeric" title="Feeric [CPL197]" target="_blank" style="color: #cccccc; text-decoration: none;">Feeric [CPL197]</a></div> ## TL;DR; <iframe width="560" height="315" src="https://www.youtube.com/embed/TwT2eX58Rc8?si=WrmzpgK0fLJkMOEF" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> ## Prerequisites You will need the MetaMask wallet: - https://metamask.io/download ## Smart Contracts on Polkadot We will be deploying to Asset Hub on the Polkadot test network: "Westend". Asset Hub is a system parachain on Polkadot. A parachain is an L1 blockchain that has its blocks finalized by the Polkadot Relay chain. Add Asset Hub parachain to the MetaMask wallet: ![Asset Hub on MetaMask](https://hackmd.io/_uploads/HkLRkOa7ye.png) > Network name: Asset-Hub Westend Testnet > RPC URL URL: https://westend-asset-hub-eth-rpc.polkadot.io > Chain ID: 420420421 > Currency Symbol: WND > Block Explorer URL: https://assethub-westend.subscan.io ### Get some tokens Go to the [Westend faucet](https://faucet.polkadot.io/westend?parachain=1000) and request some tokens using your Ethereum account: ![Polkadot Faucet](https://hackmd.io/_uploads/Syoledpmke.png) On success you will have some WND tokens in your account. We are now ready to deploy contracts to Asset Hub! ## Deploying to Polkadot Go to the REMIX IDE: - https://remix.polkadot.io > This is a forked version of REMIX IDE compatible with the Polkadot tech stack. ![REMIX IDE](https://hackmd.io/_uploads/Skofx_a7Je.png) Compile the `_Storage.sol` contract. ![Compile](https://hackmd.io/_uploads/rkRVeO6Xyg.png) Deploy the contract. ![Deploy](https://hackmd.io/_uploads/H1L8ldpXyl.png) Make sure to pin the contract so we can interact with it. ![Pin Contract](https://hackmd.io/_uploads/S1cPgu6QJx.jpg) We can now interact with the contract's methods. ![Store](https://hackmd.io/_uploads/SJGFeOTQ1x.png) ![Retrieve](https://hackmd.io/_uploads/rkM9eOpm1g.png) Congratulations! You **successfully** deployed a Solidity smart contract to Polkadot! ## Resources: **Learn**: contracts.polkadot.io **Watch**: [Solidity on Polkadot](https://youtu.be/GPuTt10dxKI?si=oxfJ2OQqboj7zpfM)