Skip to main content

nil contract deploy

Description

Deploy a smart contract with the specified hex-bytecode from stdin or from a file

Usage

nil contract deploy [path to file] [args...] [flags]

Regular Flags

NameTypeDescription
--abistringThe path to the ABI file
--fee-creditvalueThe deployment fee credit. If set to 0, it will be estimated automatically (default 1000000)
-h, --helpbooleanhelp for deploy
--no-waitbooleanDefine whether the command should wait for the receipt
--saltbooleanUint256 The salt for deployment message
--shard-idshardidSpecify the shard ID to interact with (default 1)

Global Flags

NameTypeDescription
-c, --configstringThe path to the config file (default "/build/.config/nil/config.ini")
-l, --log-levelstringLog level: trace
-q, --quietbooleanQuiet mode (print only the result and exit)
-v, --verbosebooleanVerbose mode (print logs)