Skip to main content
Version: v6

Rocket Title Picture

Deploy Your Contract

Deploying a contract involves uploading your compiled contract code and creating an instance of it on a blockchain. In Polkadot, these are two separate steps: first upload the code, then instantiate it as many times as needed.

If not specified Pop CLI automatically launches a local node for you when deploying a contract.

pop build --release
pop up

For more deployment options, see the Pop CLI deployment guide.

Deploying to Passet Hub Testnet

To deploy your contract to a live testnet, you can use Passet Hub, Polkadot's testnet Asset Hub that supports ink! v6 smart contracts.

Prerequisites:

  1. Get PAS tokens: Use the Passet Hub Faucet
  2. Polkadot account: Create one following this guide

Deploy your contract to Passet Hub using Pop CLI:

pop up --url wss://testnet-passet-hub.polkadot.io

Pop CLI will automatically handle the deployment to the testnet. Make sure you have PAS tokens in your account before deploying.

For more deployment options, see the Pop CLI deployment guide.