I have created one smart contract and want to create a button on the frontend which will deploy the contract to the testnet whenever we click on it, So is this can be done through an API, and if yes then how can we do that??


1 Answer 1


I want to use rest api in foundry or hardhat to deploy my smart contract on testnet. Is this something possible?

  • As it’s currently written, your answer is unclear. Please edit to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center.
    – Community Bot
    Commented Mar 24, 2023 at 1:13

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.