Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Important: If you're encountering any problem declaring contracts, please read the Blake Hash Support information.

deploy

Configure a deploy call as part of a multicall transaction.

--id <ID>

Optional.

An optional identifier to reference this step in later steps. This is useful for referencing deployed contracts in later calls within the same multicall. Value can be later reference with @id syntax. It can be used with the --contract-address and --calldata flags in subsequent calls.

📝 Note

The @id reference cannot be used with the --arguments flag.

--class-hash, -g <CLASS_HASH>

Required.

Class hash of contract to deploy.

--constructor-calldata, -c <CONSTRUCTOR_CALLDATA>

Optional. Conflicts with: --arguments

Calldata for the contract constructor.

--arguments

Optional. Conflicts with: --constructor-calldata

Constructor arguments provided as a comma-separated string of Cairo expressions. For example: --arguments '1, 2, MyStruct { x: 1, y: 2 }, MyEnum::Variant'

For more information on supported expressions and syntax, see Calldata Transformation.

--salt, -s <SALT>

Optional.

Salt for the contract address.

--unique

Optional.

If passed, the salt will be additionally modified with an account address.