> For the complete documentation index, see [llms.txt](https://pliangroup.gitbook.io/plian/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pliangroup.gitbook.io/plian/master/using-the-blockchain/metamask/how-to-deploy-smart-contract-on-plian-via-metamask-+-remix.md).

# How to deploy smart contract on Plian via Metamask + Remix

Please find below a step by step tutorial detailing how to use MetaMask and Remix to deploy smart contract on Plian mainnet. We take the following example of deploying ERC-20 token smart contract.

### Step 1: open MetaMask and choose child\_0 subchain. <a href="#id-9545" id="id-9545"></a>

Child\_0 (Subchian 1) RPC:[  ](< https://mainnet.plian.io/child_0>)<https://mainnet.plian.io/child_0> 8007736

If you don't know how to connect Metamask to Plian, please click [here](https://pliangroup.gitbook.io/plian/for-developers/how-to-connect-metamask-to-plian)

{% hint style="info" %}
&#x20;Deploying smart contract is only available on Plian subchain.&#x20;
{% endhint %}

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-AVZO5EXy_scDukiN%2F-Me-EnZobhXFewy6V783%2F1.png?alt=media\&token=8e43b212-55d0-427e-9ed5-58db4f862b7c)

### Step 2: open #remix and add the smart contract. <a href="#id-99a3" id="id-99a3"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-FiI29x965cRyCba6%2F2.png?alt=media\&token=c9af05ed-0728-4beb-9495-299f226e3a5b)

### Step 3: deploy the contract and connect to MetaMask. <a href="#id-7bff" id="id-7bff"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-Fv_Ccp3t9w4aOPLZ%2F3.png?alt=media\&token=fa55d85f-23ed-41c7-95ad-7f0f0c689dad)

### Step 4: select the account and select “next” then “connect”. Once successfully connected the address and balance will be displayed. <a href="#d99b" id="d99b"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-HTlNJ1_EPYlvH3VV%2F4-1.png?alt=media\&token=e638aa1c-7262-4af6-92d5-04c086177312)

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-HWVGwr_oNQ2muh_O%2F4-2.png?alt=media\&token=6461060c-ef93-416a-b68d-93e553c65b4d)

### Step 5: select “confirm”. Once successfully connected the address and balance will be displayed. <a href="#id-1977" id="id-1977"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-HkYrnfyNhkdsEXq5%2F5.png?alt=media\&token=da962e6f-0840-41ac-bb44-b5deadd084e4)

### Step 6: fill the parameter and select “transact”. <a href="#id-9c3d" id="id-9c3d"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-HvFUkMvTb71O522V%2F6.png?alt=media\&token=d1887bb3-4517-4a26-8e26-85c6571c3b6e)

### Step 7: select “confirm”. <a href="#c780" id="c780"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-I34XFsP-hlZafE3J%2F7.png?alt=media\&token=9be0fdc0-72d9-4788-a4c5-44c16920eeec)

### Step 8: once successfully deployed copy the contract address <a href="#ea07" id="ea07"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-IDOey6RiZebdA9dI%2F8.png?alt=media\&token=daa02435-f74a-420c-bc54-31dc54c8c2e4)

### Step 9: check the token in MetaMask, open MetaMask and select “Add Token” <a href="#id-4cf6" id="id-4cf6"></a>

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-IjSzTRnmPneOb5sD%2F9-1.png?alt=media\&token=ad78f1af-421b-4524-b4bb-83456e72861c)

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-Id0x-XbaPRD-uOk5%2F9-2.png?alt=media\&token=2a2039cb-c8b9-484a-9092-ca879479ffba)

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-JVYCqGYdESyKeTcE%2F9-3.png?alt=media\&token=01fe9375-73b6-485a-b613-8987cedeba8f)

![](https://2117450341-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRCF092Z3_9ouKsNgIF%2F-Me-FBCGdPg5XPZz7B5v%2F-Me-JbmvdyBPxT8AFAuk%2F9-4.png?alt=media\&token=0286f905-a85f-4f7a-80dc-12f07b0f643a)

### Step11: Done! Congratulation!! <a href="#id-3233" id="id-3233"></a>

If you wanna check the deployment transaction details on [PIscan](https://piscan.plian.org), make a copy of the token smart contract or the owner address of the smart contract to piscan to check.&#x20;
