Aztec 백서

Aztec

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 40쪽

our `aztec` CLI version and the `aztec` dependency in the test crate's `Nargo.toml` are on the same release. Note that the test crate's Aztec.nr version can differ from the contract crate's version, depending on your project configuration. For example, if your CLI is on `v6.0.0-rc.1`, the test crate's `Nargo.toml` should reference the matching tag: ``` [dependencies] aztec = { git="https://github.com/aztec-labs-eng/aztec-nr", tag="v6.0.0-rc.1", directory="aztec" } ``` If the test environment reports a version that *should* include every oracle the test needs but an oracle is still missing, this is likely a bug rather than a version problem. --- # Aztec CLI Reference *This documentation is auto-generated from the `aztec` CLI help output.* *Generated: Wed 07 Oct 2026 16:48:02 UTC* *Command: `aztec`* ## Table of Contents[​](#table-of-contents "Direct link to Table of Contents") * [aztec](#aztec) * [aztec add-l1-validator](#aztec-add-l1-validator) * [aztec advance-epoch](#aztec-advance-epoch) * [aztec block-number](#aztec-block-number) * [aztec codegen](#aztec-codegen) * [aztec compile](#aztec-compile) * [aztec compute-genesis-values](#aztec-compute-genesis-values) * [aztec debug-rollup](#aztec-debug-rollup) * [aztec decode-enr](#aztec-decode-enr) * [aztec deploy-l1-contracts](#aztec-deploy-l1-contracts) * [aztec deploy-new-rollup](#aztec-deploy-new-rollup) * [aztec deposit-governance-tokens](#aztec-deposit-governance-tokens) * [aztec execute-governance-proposal](#aztec-execute-governance-proposal) * [aztec fast-forward-epochs](#aztec-fast-forward-epochs) * [aztec generate-bls-keypair](#aztec-generate-bls-keypair) * [aztec generate-bootnode-enr](#aztec-generate-bootnode-enr) * [aztec generate-keys](#aztec-generate-keys) * [aztec generate-l1-account](#aztec-generate-l1-account) * [aztec generate-p2p-private-key](#aztec-generate-p2p-private-key) * [aztec get-block](#aztec-get-block) * [aztec get-current-min-fee](#aztec-get-current-min-fee) * [aztec get-l1-addresses](#aztec-get-l1-addresses) * [aztec get-l1-balance](#aztec-get-l1-balance) * [aztec get-l1-to-l2-message-witness](#aztec-get-l1-to-l2-message-witness) * [aztec get-logs](#aztec-get-logs) * [aztec get-node-info](#aztec-get-node-info) * [aztec init](#aztec-init) * [aztec initiate-withdraw-by-attester](#aztec-initiate-withdraw-by-attester) * [aztec initiate-withdraw-by-attester-batch](#aztec-initiate-withdraw-by-attester-batch) * [aztec migrate-ha-db](#aztec-migrate-ha-db) * [aztec migrate-ha-db down](#aztec-migrate-ha-db-down) * [aztec migrate-ha-db up](#aztec-migrate-ha-db-up) * [aztec new](#aztec-new) * [aztec preload-crs](#aztec-preload-crs) * [aztec profile](#aztec-profile) * [aztec profile flamegraph](#aztec-profile-flamegraph) * [aztec profile gates](#aztec-profile-gates) * [aztec propose-with-lock](#aztec-propose-with-lock) * [aztec prover](#aztec-prover) * [aztec prover get-jobs](#aztec-prover-get-jobs) * [aztec prover start-proof](#aztec-prover-start-proof) * [aztec prune-rollup](#aztec-prune-rollup) * [aztec remove-l1-validator](#aztec-remove-l1-validator) * [aztec sequencers](#aztec-sequencers) * [aztec setup-protocol-contracts](#aztec-setup-protocol-contracts) * [aztec start](#aztec-start) * [aztec test](#aztec-test) * [aztec trigger-seed-snapshot](#aztec-trigger-seed-snapshot) * [aztec update](#aztec-update) * [aztec validator-keys|valKeys](#aztec-validator-keys%7Cvalkeys) * [aztec vote-on-governance-proposal](#aztec-vote-on-governance-proposal) ## aztec[​](#aztec "Direct link to aztec") Aztec command line interface **Usage:** ``` aztec [options] [command] ``` **Available Commands:** * `add-l1-validator [options]` - Adds a validator to the L1 rollup contract via a direct deposit. * `advance-epoch [options]` - Use L1 cheat codes to warp time until the next epoch. * `block-number [options]` - Gets the current Aztec L2 block number. * `codegen [options] <noir-abi-path>` - Validates and generates an Aztec Contract ABI from Noir ABI. * `compile [nargo-args...]` - Compile Aztec Noir contracts using nargo and postprocess them to generate transpiled artifacts and verification keys. All options are forwarded to nargo compile. * `compute-genesis-values [options]` - Computes genesis values (VK tree root, protocol contracts hash, genesis archive root). * `debug-rollup [options]` - Debugs the rollup contract. * `decode-enr <enr>` - Decodes an ENR record * `deploy-l1-contracts [options]` - Deploys all necessary Ethereum contracts for Aztec. * `deploy-new-rollup [options]` - Deploys a new rollup contract and adds it to the registry (if you are the owner). * `deposit-governance-tokens [options]` - Deposits governance tokens to the governance contract. * `execute-governance-proposal [options]` - Executes a governance proposal. * `fast-forward-epochs [options]` - Fast forwards the epoch of the L1 rollup contract. * `generate-bls-keypair [options]` - Generate a BLS keypair with convenience flags * `generate-bootnode-enr [options] <privateKey> <p2pIp> <p2pPort>` - Generates the encoded ENR record for a bootnode. * `generate-keys [options]` - Generates encryption and signing private keys. * `generate-l1-account [options]` - Generates a new private key for an account on L1. * `generate-p2p-private-key` - Generates a LibP2P peer private key. * `get-block [options] [blockNumber]` - Gets info for a given block or latest. * `get-current-min-fee [options]` - Gets the current base fee. * `get-l1-addresses [options]` - Gets the addresses of the L1 contracts. * `get-l1-balance [options] <who>` - Gets the balance of an ERC token in L1 for the given Ethereum address. * `get-l1-to-l2-message-witness [options]` - Gets a L1 to L2 message witness. * `get-logs [options]` - Gets public logs for a contract and tag, optionally restricted by block range or tx hash. * `get-node-info [options]` - Gets the information of an Aztec node from a PXE or directly from an Aztec node. * `help [command]` - display help for command * `init` - creates a new Aztec Noir workspace in the current directory. * `initiate-withdraw-by-attester [options]` - Initiates a withdrawal signed by the position's attester. * `initiate-withdraw-by-attester-batch [options]` - Relays a JSON array of attester-signed withdrawal authorizations. * `migrate-ha-db` - Run validator-ha-signer database migrations * `new <name>` - creates a new Aztec Noir workspace in its own directory (or creates a new contract-test crates pair and adds it to the current workspace if run in workspace). * `preload-crs` - Preload the points data needed for proving and verifying * `profile` - Profile compiled Aztec artifacts. * `propose-with-lock [options]` - Makes a proposal to governance with a lock * `prover` - Operate a prover node via its admin JSON-RPC endpoint * `prune-rollup [options]` - Prunes the pending chain on the rollup contract. * `remove-l1-validator [options]` - Removes a validator to the L1 rollup contract. * `sequencers [options] <command> [who]` - Manages or queries registered sequencers on the L1 rollup contract. * `setup-protocol-contracts [options]` - Bootstrap the blockchain by initializing all the protocol contracts * `start [options]` - Starts Aztec modules. Options for each module can be set as key-value pairs (e.g. "option1=value1,option2=value2") or as environment variables. * `test [options]` - starts a TXE and runs "nargo test" using it as the oracle resolver. * `trigger-seed-snapshot [options]` - Triggers a seed snapshot for the next epoch. * `update [options] [projectPath]` - Updates Nodejs and Noir dependencies * `validator-keys|valKeys` - Manage validator keystores for node operators * `vote-on-governance-proposal [options]` - Votes on a governance proposal. **Options:** * `-V --version` - output the version number * `-h --help` - display help for command ### Subcommands[​](#subcommands "Direct link to Subcommands") ### aztec add-l1-validator[​](#aztec-add-l1-validator "Direct link to aztec add-l1-validator") Adds a validator to the L1 rollup contract via a direct deposit. **Usage:** ``` aztec add-l1-validator [options] ``` **Options:** * `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"], env: ETHEREUM\_HOSTS) * `--network <string>` - Network to execute against (env: NETWORK) * `-pk, --private-key <string>` - The private key to use sending the transaction * `-m, --mnemonic <string>` - The mnemonic to use sending the transaction (default: "test test test test test test test test test test test junk") * `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID) * `--attester <address>` - ethereum address of the attester * `--withdrawer <address>` - ethereum address of the withdrawer * `--bls-secret-key <string>` - The BN254 scalar field element used as a secret key for BLS signatures. Will be associated with the attester address. * `--move-with-latest-rollup` - Whether to move with the latest rollup (default: true) * `--rollup <string>` - Rollup contract address * `-h, --help` - display help for command ### aztec advance-epoch[​](#aztec-advance-epoch "Direct link to aztec advance-epoch") Use L1 cheat codes to warp time until the next epoch. **Usage:** ``` aztec advance-epoch [options] ``` **Options:** * `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"], env: ETHEREUM\_HOSTS) * `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL) * `-h, --help` - display help for command ### aztec block-number[​](#aztec-block-number "Direct link to aztec block-number") Gets the current Aztec L2 block number. **Usage:** ``` aztec block-number [options] ``` **Options:** * `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL) * `-h, --help` - display help for command ### aztec codegen[​](#aztec-codegen "Direct link to aztec codegen") Validates and generates an Aztec Contract ABI from Noir ABI. **Usage:** ``` aztec codegen [options] <noir-abi-path> ``` **Options:** * `-o, --outdir <path>` - Output folder for the generated code. * `-f, --force` - Force code generation even when the contract has not changed. * `-h, --help` - display help for command ### aztec compile[​](#aztec-compile "Direct link to aztec compile") Compile Aztec Noir contracts using nargo and postprocess them to generate transpiled artifacts and verification keys. All options are forwarded to nargo compile. **Usage:** ``` aztec compile [options] [nargo-args...] ``` **Options:** * `-h, --help` - display help for command ### aztec compute-genesis-values[​](#aztec-compute-genesis-values "Direct link to aztec compute-genesis-values") Computes genesis values (VK tree root, protocol contracts hash, genesis archive root). **Usage:** ``` aztec compute-genesis-values [options] ``` **Options:** * `--test-accounts <boolean>` - Include initial test accounts in genesis state (env: TEST\_ACCOUNTS) * `--sponsored-fpc <boolean>` - Include sponsored FPC contract in genesis state (env: SPONSORED\_FPC) * `-h, --help` - display help for command ### aztec debug-rollup[​](#aztec-debug-rollup "Direct link to aztec debug-rollup") Debugs the rollup contract. **Usage:** ``` aztec debug-rollup [options] ``` **Options:** * `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"], env: ETHEREUM\_HOSTS) * `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID) * `--rollup <address>` - ethereum address of the rollup contract * `-h, --help` - display help for command ### aztec decode-enr[​](#aztec-decode-enr "Direct link to aztec decode-enr") Decodes and ENR record **Usage:** ``` aztec decode-enr [options] <enr> ``` **Options:** * `-h, --help` - display help for command ### aztec deploy-l1-contracts[​](#aztec-deploy-l1-contracts "Direct link to aztec deploy-l1-contracts") Deploys all necessary Ethereum contracts for Aztec. **Usage:** ``` aztec deploy-l1-contracts [options] ``` **Options:** * `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"], env: ETHEREUM\_HOSTS) * `-pk, --private-key <string>` - The private key to use for deployment * `--validators <string>` - Comma separated list of validators * `-m, --mnemonic <string>` - The mnemonic to use in deployment (default: "test test test test test test test test test test test junk") * `-i, --mnemonic-index <number>` - The index of the mnemonic to use in deployment (default: 0) * `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID) * `--json` - Output the contract addresses in JSON format * `--test-accounts` - Populate genesis state with initial fee juice for test accounts * `--sponsored-fpc` - Populate genesis state with a testing sponsored FPC contract * `--real-verifier` - Deploy the real verifier (default: false) * `--existing-token <address>` - Use an existing ERC20 for both fee and staking * `-h, --help` - display help for command ### aztec deploy-new-rollup[​](#aztec-deploy-new-rollup "Direct link to aztec deploy-new-rollup") Deploys a new rollup contract and adds it to the registry (if you are the owner). **Usage:** ``` aztec deploy-new-rollup [options] ``` **Options:** * `-r, --registry-address <string>` - The address of the registry contract * `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"], env: ETHEREUM\_HOSTS) * `-pk, --private-key <string>` - The private key to use for deployment * `--validators <string>` - Comma separated list of validators * `-m, --mnemonic <string>` - The mnemonic to use in deployment (default: "test test test test test test test test test test test junk") * `-i, --mnemonic-index <number>` - The index of the mnemonic to use in deployment (default: 0) * `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID) * `--json` - Output the contract addresses in JSON format * `--test-accounts` - Populate genesis state with initial fee juice for test accounts * `--sponsored-fpc` - Populate genesis state with a testing sponsored FPC contract * `--real-verifier` - Deploy the real verifier (default: false) * `-h, --help` - display help for command ### aztec deposit-governance-tokens[​](#aztec-deposit-governance-tokens "Direct link to aztec deposit-governance-tokens") Deposits governance tokens to the governance contract. **Usage:** ``` aztec deposit-governance-tokens [options] ``` **Options:** * `-r, --registry-address <string>` - The address of the registry contract * `--recipient <string>` - The recipient of the tokens * `-a, --amount <string>` - The amount of tokens to deposit * `--mint` - Mint the tokens on L1 (default: false) * `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"], env: ETHEREUM\_HOSTS) * `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID) * `-p, --private-key <string>` - The private key to use to deposit * `-m, --mnemonic <string>` - The mnemonic to use to deposit (default: "test test test test test test test test test test test junk") * `-i, --mnemonic-index <number>` - The index of the mnemonic to use to deposit (default: 0) * `-h, --help` - display help for command ### aztec execute-governance-proposal[​](#aztec-execute-governance-proposal "Direct link to aztec execute-governance-proposal") Executes a governance proposal. **Usage:** ``` aztec execute-governance-proposal [options] ``` **Options:** * `-p, --proposal-id <string>` - The ID of the proposal * `-r, --registry-address <string>` - The address of the registry contract * `--wait <boolean>` - Whether to wait until the proposal is executable * `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"], env: ETHEREUM\_HOSTS) * `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID) * `-pk, --private-key <string>` - The private key to use to vote * `-m, --mnemonic <string>` - The mnemonic to use to vote (default: "test test test test test test test test test test test junk") * `-i, --mnemonic-index <number>` - The index of the mnemonic to use to vote (default: 0) * `-h, --help` - display help for command ### aztec fast-forward-epochs[​](#aztec-fast-forward-epochs "Direct link to aztec fast-forward-epochs") *Help for this command is currently unavailable due to a technical issue with option serialization.* ### aztec generate-bls-keypair[​](#aztec-generate-bls-keypair "Direct link to aztec generate-bls-keypair") Generate a BLS keypair with convenience flags **Usage:** ``` aztec generate-bls-keypair [options] ``` **Options:** * `--mnemonic <mnemonic>` - Mnemonic for BLS derivation * `--ikm <hex>` - Initial keying material for BLS (alternative to mnemonic) * `--bls-path <path>` - EIP-2334 path (default m/12381/3600/0/0/0) * `--g2` - Derive on G2 subgroup * `--compressed` - Output compressed public key * `--json` - Print JSON output to stdout * `--out <file>` - Write output to file * `-h, --help` - display help for command ### aztec generate-bootnode-enr[​](#aztec-generate-bootnode-enr "Direct link to aztec generate-bootnode-enr") Generates the encoded ENR record for a bootnode. **Usage:** ``` aztec generate-bootnode-enr [options] <privateKey> <p2pIp> <p2pPort> ``` **Options:** * `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID) * `-h, --help` - display help for command ### aztec generate-keys[​](#aztec-generate-keys "Direct link to aztec generate-keys") Generates and encryption and signing private key pair. **Usage:** ``` aztec generate-keys [options] ``` **Options:** * `--json` - Output the keys in JSON format * `-h, --help` - display help for command ### aztec generate-l1-account[​](#aztec-generate-l1-account "Direct link to aztec generate-l1-account") Generates a new private key for an account on L1. **Usage:** ``` aztec generate-l1-account [options] ``` **Options:** * `--json` - Output the private key in JSON format * `-h, --help` - display help for command ### aztec generate-p2p-private-key[​](#aztec-generate-p2p-private-key "Direct link to aztec generate-p2p-private-key") Generates a private key that can be used for running a node on a LibP2P network. **Usage:** ``` aztec generate-p2p-private-key [options] ``` **Options:** * `-h, --help` - display help for command ### aztec get-block[​](#aztec-get-block "Direct link to aztec get-block") Gets info for a given block or latest. **Usage:** ``` aztec get-block [options] [blockNumber] ``` **Options:** * `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL) * `-h, --help` - display help for command ### aztec get-current-min-fee[​](#aztec-get-current-min-fee "Direct link to aztec get-current-min-fee") Gets the current base fee. **Usage:** ``` aztec get-current-min-fee [options] ``` **Options:** * `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL) * `-h, --help` - display help for command ### aztec get-l1-addresses[​](#aztec-get-l1-addresses "Direct link to aztec get-l1-addresses") Gets the addresses of the L1
프로젝트로 돌아가기