sorry,just ask a simple question... what is difference between button [publish] and [create] ? (on Remix Tool UI)

thanks a lot~ hippo

2 Answers 2


create creates contract on the blockchain. publish creates contract and publishes sourcecode so it can be viewed with etherscan.io

for example in this contract you can see it has verified sourcecode tab (publish button ). https://ropsten.etherscan.io/address/0x44356018b9b9480d80b90b2e42ee8ab6a524a243


To clarify, when you use the term "publish" in the context of deploying a smart contract, it typically refers to making the contract's source code publicly available, usually on a platform like Etherscan.io, where anyone can view the code.

Here's a general outline of how you can publish a smart contract on the Ethereum blockchain along with its source code:

  1. Write the Smart Contract: Develop your smart contract using a programming language such as Solidity.

  2. Compile the Smart Contract: Compile your Solidity code into bytecode, which is the machine-readable form of your smart contract.

  3. Deploy the Smart Contract: Use a development environment like Remix, Truffle, or Hardhat to deploy your smart contract onto the Ethereum blockchain. During deployment, you'll receive a transaction hash as confirmation.

  4. Verify the Smart Contract: Once your contract is deployed, you can verify it on platforms like Etherscan.io. This involves providing the source code of your smart contract along with its constructor arguments and other relevant details.

  5. Publish the Source Code: On platforms like Etherscan.io, there's an option to publish your smart contract's source code. You'll need to provide the source code itself, usually in Solidity format, along with some additional details such as the compiler version used.

  6. Confirm Publication: After providing the necessary information, the platform will process your request and make the source code publicly available for anyone to view.

By following these steps, you can create and publish your smart contract on the Ethereum blockchain, allowing others to inspect its source code and understand its functionality.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.