Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.solidscipt.zoracle.xyz/llms.txt

Use this file to discover all available pages before exploring further.

The deploy command sends a compiled contract artifact to the network you specify. On non-local networks it opens a browser wallet by default, keeping your private key off disk. For scripted or CI deployments you can disable the browser flow and reference a named local hot wallet instead. After a successful deployment, deploy automatically submits the contract source to the network’s block explorer unless you pass --no-verify.
solidscript deploy <contract> -n <network>

Arguments

ArgumentDescription
<contract>Name of the compiled contract to deploy

Options

FlagDescription
-n, --network <name>Target network. Built-in values: anvil, base-sepolia, base, sepolia. Custom chains defined in your config are also accepted.
-a, --args <args...>Constructor arguments passed to the contract at deploy time
-w, --wallet <name>Name of a local hot wallet to use instead of the browser flow
--no-browserDisable the browser-wallet flow. Requires --wallet to be set.
--no-verifySkip automatic source verification on the network’s explorer after deployment

Examples

# Deploy to a local Anvil node
npx solidscript deploy Counter -n anvil

# Deploy to Base Sepolia with a constructor argument
npx solidscript deploy MyToken -n base-sepolia -a 1000000

# Deploy to Base mainnet using a named wallet, skipping explorer verification
npx solidscript deploy MyToken -n base --no-verify --wallet prod
Local hot wallets created with solidscript wallet new are intended for local development and disposable testnets only. Use the browser-wallet flow for any deployment that involves real funds.