Verify and publish smart contract on Etherscan
Iñaky Maisterrena
21 steps
2 minutes
Etherscan
Ethereum
1
Navigate to [https://sepolia.etherscan.io/](https://sepolia.etherscan.io/)
2
Click the "Search" field.
3
Press [[meta]] + [[v ]]and paste the token address retrieved in the last step of the creating ERC20 flow.
4
Type " [[enter]]"
5
Click "Contract"
6
Click "Verify and Publish"
7
Click this dropdown. And select "Solidity (Single file)"
8
Click this dropdown. Select `v0.8.26+commit.8a97fa7a`
9
Click this dropdown. Select MIT
10
Click this button.
11
Go back to the REMIX IDE where you created the ERC20 and click this image.
12
Right-click "MyToken.sol"
13
Click "Flatten"
14
Click the newly created "MyToken_flattened.sol" immediately above the MyToken.sol file
15
Click here.
16
Press [[meta]] + [[a]] to select the entire code.
17
Press [[meta]] + [[c]] to copy
18
Click this field.
19
Press [[meta]] + [[v]] to paste the flattened code
20
Click this button.
21
You´ve done it! You have verified your contract! Congrats.
Verify and publish smart contract on Etherscan
Iñaky Maisterrena
21 steps
2 minutes
Etherscan
Ethereum
1
Navigate to [https://sepolia.etherscan.io/](https://sepolia.etherscan.io/)
2
Click the "Search" field.
3
Press [[meta]] + [[v ]]and paste the token address retrieved in the last step of the creating ERC20 flow.
4
Type " [[enter]]"
5
Click "Contract"
6
Click "Verify and Publish"
7
Click this dropdown. And select "Solidity (Single file)"
8
Click this dropdown. Select `v0.8.26+commit.8a97fa7a`
9
Click this dropdown. Select MIT
10
Click this button.
11
Go back to the REMIX IDE where you created the ERC20 and click this image.
12
Right-click "MyToken.sol"
13
Click "Flatten"
14
Click the newly created "MyToken_flattened.sol" immediately above the MyToken.sol file
15
Click here.
16
Press [[meta]] + [[a]] to select the entire code.
17
Press [[meta]] + [[c]] to copy
18
Click this field.
19
Press [[meta]] + [[v]] to paste the flattened code
20
Click this button.
21
You´ve done it! You have verified your contract! Congrats.