Skip to main content

Prerequisites

You should already have a Foundry project set up, and have compiled your smart contract successfully. See the set up Foundry and compile a smart contract tutorial for how to do so. Optionally, but strongly recommended: You should also have tested your smart contract successfully. See the test a smart contract using Foundry tutorial for how to do so.

Run the deployment

Run the following command to deploy the smart contract:
Note that we’re using the injTest account saved to the keystore, which was previously set up in set up Foundry and compile a smart contract.
The output should look similar to:
Copy the deployed address, visit https://testnet.blockscout.injective.network, and paste the address in the search field. You’ll visit the smart contract page in the block explorer for the smart contract that you have just deployed. If you click on the “Contract” tab, you should see the EVM bytecode for that contract, and it will match the EVM bytecode found in your artifacts directory after compilation.

Next steps

Now that you have deployed your smart contract, you are ready to verify that smart contract! Check out the verify a smart contract using Foundry tutorial next.
Last modified on March 30, 2026