bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 41쪽
contracts.
**Usage:**
```
aztec get-l1-addresses [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)
* `-v, --rollup-version <number>` - The version of the rollup
* `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID)
* `--json` - Output the addresses in JSON format
* `-h, --help` - display help for command
### aztec get-l1-balance[](#aztec-get-l1-balance "Direct link to aztec get-l1-balance")
Gets the balance of an ERC token in L1 for the given Ethereum address.
**Usage:**
```
aztec get-l1-balance [options] <who>
```
**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)
* `-t, --token <string>` - The address of the token to check the balance of
* `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID)
* `--json` - Output the balance in JSON format
* `-h, --help` - display help for command
### aztec get-l1-to-l2-message-witness[](#aztec-get-l1-to-l2-message-witness "Direct link to aztec get-l1-to-l2-message-witness")
Gets a L1 to L2 message witness.
**Usage:**
```
aztec get-l1-to-l2-message-witness [options]
```
**Options:**
* `-ca, --contract-address <address>` - Aztec address of the contract.
* `--message-hash <messageHash>` - The L1 to L2 message hash.
* `--secret <secret>` - The secret used to claim the L1 to L2 message
* `-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-logs[](#aztec-get-logs "Direct link to aztec get-logs")
Gets public logs for a contract and tag, optionally restricted by block range or tx hash.
**Usage:**
```
aztec get-logs [options]
```
**Options:**
* `-ca, --contract-address <address>` - Contract address that emitted the logs.
* `--tag <tag>` - Tag (Fr value) to filter logs by.
* `-tx, --tx-hash <txHash>` - A transaction hash to restrict the search to.
* `-fb, --from-block <blockNum>` - Initial block number for getting logs (defaults to 1).
* `-tb, --to-block <blockNum>` - Up to which block to fetch logs (defaults to latest). \<blockNumber>-\<txIndexWithinBlock>-\<logIndexWithinTx> to resume pagination after.
* `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL)
* `--follow` - If set, will keep polling for new logs until interrupted.
* `-h, --help` - display help for command
### aztec get-node-info[](#aztec-get-node-info "Direct link to aztec get-node-info")
Gets the information of an Aztec node from a PXE or directly from an Aztec node.
**Usage:**
```
aztec get-node-info [options]
```
**Options:**
* `--json` - Emit output as json
* `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL)
* `-h, --help` - display help for command
### aztec init[](#aztec-init "Direct link to aztec init")
Aztec Init - Create a new Aztec Noir project in the current directory
**Usage:**
```
aztec init
```
**Options:**
* `-h, --help` - Print help
### aztec initiate-withdraw-by-attester[](#aztec-initiate-withdraw-by-attester "Direct link to aztec initiate-withdraw-by-attester")
Initiates a withdrawal signed by the position's attester.
**Usage:**
```
aztec initiate-withdraw-by-attester [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)
* `-pk, --private-key <string>` - The attester private key
* `-m, --mnemonic <string>` - Mnemonic for the attester account
* `--attester <address>` - Attester address of the position to exit
* `--rollup <address>` - Rollup holding the position
* `-h, --help` - display help for command
### aztec initiate-withdraw-by-attester-batch[](#aztec-initiate-withdraw-by-attester-batch "Direct link to aztec initiate-withdraw-by-attester-batch")
Relays a JSON array of attester-signed withdrawal authorizations.
**Usage:**
```
aztec initiate-withdraw-by-attester-batch [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)
* `-pk, --private-key <string>` - The relayer private key
* `-m, --mnemonic <string>` - Mnemonic for the relayer account
* `--authorizations <path>` - JSON file containing attester, decimal deadline, and signature fields
* `--rollup <address>` - Rollup holding the positions
* `--up-to-limit` - Process the largest permitted prefix instead of reverting when the whole batch is too large
* `-h, --help` - display help for command
### aztec migrate-ha-db[](#aztec-migrate-ha-db "Direct link to aztec migrate-ha-db")
Run validator-ha-signer database migrations
**Usage:**
```
aztec migrate-ha-db [options] [command]
```
**Available Commands:**
* `down [options]` - Rollback the last migration
* `help [command]` - display help for command
* `up [options]` - Apply pending migrations
**Options:**
* `-h --help` - display help for command
#### Subcommands[](#subcommands-1 "Direct link to Subcommands")
#### aztec migrate-ha-db down[](#aztec-migrate-ha-db-down "Direct link to aztec migrate-ha-db down")
Rollback the last migration
**Usage:**
```
aztec migrate-ha-db down [options]
```
**Options:**
* `--database-url <string>` - PostgreSQL connection string
* `--verbose` - Enable verbose output (default: false)
* `-h, --help` - display help for command
#### aztec migrate-ha-db up[](#aztec-migrate-ha-db-up "Direct link to aztec migrate-ha-db up")
Apply pending migrations
**Usage:**
```
aztec migrate-ha-db up [options]
```
**Options:**
* `--database-url <string>` - PostgreSQL connection string
* `--verbose` - Enable verbose output (default: false)
* `-h, --help` - display help for command
### aztec new[](#aztec-new "Direct link to aztec new")
Aztec New - Create a new Aztec Noir project or add a contract to an existing workspace
**Usage:**
```
aztec new <NAME>
```
**Options:**
* `-h, --help` - Print help
### aztec preload-crs[](#aztec-preload-crs "Direct link to aztec preload-crs")
Preload the points data needed for proving and verifying
**Usage:**
```
aztec preload-crs [options]
```
**Options:**
* `-h, --help` - display help for command
### aztec profile[](#aztec-profile "Direct link to aztec profile")
Profile compiled Aztec artifacts.
**Usage:**
```
aztec profile [options] [command]
```
**Available Commands:**
* `flamegraph <contract-artifact> <function>` - Generate a gate count flamegraph SVG for a contract function.
* `gates [options] [target-dir]` - Display gate counts for all compiled Aztec artifacts in a target directory.
* `help [command]` - display help for command
**Options:**
* `-h --help` - display help for command
#### Subcommands[](#subcommands-2 "Direct link to Subcommands")
#### aztec profile flamegraph[](#aztec-profile-flamegraph "Direct link to aztec profile flamegraph")
Generate a gate count flamegraph SVG for a contract function.
**Usage:**
```
aztec profile flamegraph [options] <contract-artifact> <function>
```
**Options:**
* `-h, --help` - display help for command
#### aztec profile gates[](#aztec-profile-gates "Direct link to aztec profile gates")
Display gate counts for all compiled Aztec artifacts in a target directory.
**Usage:**
```
aztec profile gates [options] [target-dir]
```
**Options:**
* `--json` - Output gate counts as JSON instead of a table (default: false)
* `-h, --help` - display help for command
### aztec propose-with-lock[](#aztec-propose-with-lock "Direct link to aztec propose-with-lock")
Makes a proposal to governance with a lock
**Usage:**
```
aztec propose-with-lock [options]
```
**Options:**
* `-r, --registry-address <string>` - The address of the registry contract
* `-p, --payload-address <string>` - The address of the payload 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)
* `-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 propose
* `-m, --mnemonic <string>` - The mnemonic to use to propose (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 propose (default: 0)
* `--json` - Output the proposal ID in JSON format
* `-h, --help` - display help for command
### aztec prover[](#aztec-prover "Direct link to aztec prover")
Operate a prover node via its admin JSON-RPC endpoint
**Usage:**
```
aztec prover [options] [command]
```
**Available Commands:**
* `get-jobs [options]` - Lists the prover node proving jobs
* `help [command]` - display help for command
* `start-proof [options]` - Schedules proving for the given epoch
**Options:**
* `-h --help` - display help for command
#### Subcommands[](#subcommands-3 "Direct link to Subcommands")
#### aztec prover get-jobs[](#aztec-prover-get-jobs "Direct link to aztec prover get-jobs")
Lists the prover node proving jobs
**Usage:**
```
aztec prover get-jobs [options]
```
**Options:**
* `--admin-url <url>` - URL of the prover node admin JSON-RPC endpoint
* `--api-key <key>` - Admin API key
* `-h, --help` - display help for command
#### aztec prover start-proof[](#aztec-prover-start-proof "Direct link to aztec prover start-proof")
Schedules proving for the given epoch
**Usage:**
```
aztec prover start-proof [options]
```
**Options:**
* `--epoch <n>` - Epoch number to prove
* `--admin-url <url>` - URL of the prover node admin JSON-RPC endpoint
* `--api-key <key>` - Admin API key
* `-h, --help` - display help for command
### aztec prune-rollup[](#aztec-prune-rollup "Direct link to aztec prune-rollup")
Prunes the pending chain on the rollup contract.
**Usage:**
```
aztec prune-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)
* `-pk, --private-key <string>` - The private key to use for deployment
* `-m, --mnemonic <string>` - The mnemonic to use in deployment (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)
* `--rollup <address>` - ethereum address of the rollup contract
* `-h, --help` - display help for command
### aztec remove-l1-validator[](#aztec-remove-l1-validator "Direct link to aztec remove-l1-validator")
Removes a validator to the L1 rollup contract.
**Usage:**
```
aztec remove-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)
* `-pk, --private-key <string>` - The private key to use for deployment
* `-m, --mnemonic <string>` - The mnemonic to use in deployment (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)
* `--validator <address>` - ethereum address of the validator
* `--rollup <address>` - ethereum address of the rollup contract
* `-h, --help` - display help for command
### aztec sequencers[](#aztec-sequencers "Direct link to aztec sequencers")
Manages or queries registered sequencers on the L1 rollup contract.
**Usage:**
```
aztec sequencers [options] <command> [who]
```
**Options:**
* `--l1-rpc-urls <string>` - List of Ethereum host URLs. Chain identifiers localhost and testnet can be used (comma separated) (default: \["http\://localhost:8545"])
* `-m, --mnemonic <string>` - The mnemonic for the sender of the tx (default: "test test test test test test test test test test test junk")
* `--block-number <number>` - Block number to query next sequencer for
* `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL)
* `-c, --l1-chain-id <number>` - Chain ID of the ethereum host (default: 31337, env: L1\_CHAIN\_ID)
* `-h, --help` - display help for command
### aztec setup-protocol-contracts[](#aztec-setup-protocol-contracts "Direct link to aztec setup-protocol-contracts")
Bootstrap the blockchain by initializing all the protocol contracts
**Usage:**
```
aztec setup-protocol-contracts [options]
```
**Options:**
* `-n, --node-url <string>` - URL of the Aztec node (default: "<http://localhost:8080>", env: AZTEC\_NODE\_URL)
* `--testAccounts` - Deploy funded test accounts.
* `--json` - Output the contract addresses in JSON format
* `-h, --help` - display help for command
### aztec start[](#aztec-start "Direct link to aztec start")
**MISC**
* `--network <value>` Network to run Aztec on *Environment: `$NETWORK`*
* `--enable-auto-shutdown` Soft-shutdown the node when the canonical rollup is no longer compatible (protocol constants diverge), keeping the health server up so K8s probes keep passing. Only applies to nodes following the canonical rollup. *Environment: `$ENABLE_AUTO_SHUTDOWN`*
* `--sync-mode <value>` (default: `snapshot`) Set sync mode to `full` to always sync via L1, `snapshot` to download a snapshot if there is no local data, `force-snapshot` to download even if there is local data. *Environment: `$SYNC_MODE`*
* `--snapshots-urls <value>` Base URLs for snapshots index, comma-separated. *Environment: `$SYNC_SNAPSHOTS_URLS`*
* `--fisherman-mode` Whether to run in fisherman mode. *Environment: `$FISHERMAN_MODE`*
* `--local-network` Starts Aztec Local Network
* `--local-network.l1Mnemonic <value>` (default: `test test test test test test test test test test test junk`) Mnemonic for L1 accounts. Will be used *Environment: `$MNEMONIC`*
* `--local-network.testAccounts` (default: `true`) Deploy test accounts on local network start *Environment: `$TEST_ACCOUNTS`*
**API**
* `--port <value>` (default: `8080`) Port to run the Aztec Services on *Environment: `$AZTEC_PORT`*
* `--admin-port <value>` (default: `8880`) Port to run admin APIs of Aztec Services on *Environment: `$AZTEC_ADMIN_PORT`*
* `--admin-api-key-hash <value>` SHA-256 hex hash of a pre-generated admin API key. When set, the node uses this hash for authentication instead of auto-generating a key. *Environment: `$AZTEC_ADMIN_API_KEY_HASH`*
* `--disable-admin-api-key` Disable API key authentication on the admin RPC endpoint. By default, a key is auto-generated, displayed once, and its hash is persisted. *Environment: `$AZTEC_DISABLE_ADMIN_API_KEY`*
* `--reset-admin-api-key [value]` Force-generate a new admin API key, replacing any previously persisted key hash. The new key is displayed once at startup. *Environment: `$AZTEC_RESET_ADMIN_API_KEY`*
* `--node-debug` Expose debug endpoints (e.g. mineBlock) on the main RPC port *Environment: `$AZTEC_NODE_DEBUG`*
* `--api-prefix <value>` Prefix for API routes on any service that is started *Environment: `$API_PREFIX`*
* `--rpcMaxBatchSize <value>` (default: `100`) Maximum allowed batch size for JSON RPC batch requests. *Environment: `$RPC_MAX_BATCH_SIZE`*
* `--rpcMaxBodySize <value>` (default: `1mb`) Maximum allowed batch size for JSON RPC batch requests. *Environment: `$RPC_MAX_BODY_SIZE`*
* `--rpc-http-keep-alive-timeout-ms <value>` (default: `5000`) HTTP keep-alive timeout for JSON RPC connections in milliseconds. *Environment: `$RPC_HTTP_KEEP_ALIVE_TIMEOUT_MS`*
* `--rpc-http-headers-timeout-ms <value>` (default: `60000`) Timeout for receiving complete HTTP headers on JSON RPC connections in milliseconds. *Environment: `$RPC_HTTP_HEADERS_TIMEOUT_MS`*
* `--rpc-cors-allowed-headers <value>` Headers allowed in cross-origin JSON RPC requests, separated by commas. *Environment: `$RPC_CORS_ALLOWED_HEADERS`*
* `--rpc-cors-allowed-origins <value>` Origins allowed to make credentialed cross-origin JSON RPC requests, separated by commas. *Environment: `$RPC_CORS_ALLOWED_ORIGINS`*
* `--rpc-cors-allow-any-origin` Allow credentialed cross-origin JSON RPC requests from any origin. *Environment: `$RPC_CORS_ALLOW_ANY_ORIGIN`*
**ETHEREUM**
* `--l1-chain-id <value>` The chain ID of the ethereum host. *Environment: `$L1_CHAIN_ID`*
* `--l1-rpc-urls <value>` List of URLs of Ethereum RPC nodes that services will connect to (comma separated). *Environment: `$ETHEREUM_HOSTS`*
* `--l1-consensus-host-urls <value>` List of URLs of the Ethereum consensus nodes that services will connect to (comma separated) *Environment: `$L1_CONSENSUS_HOST_URLS`*
* `--l1-consensus-host-api-keys <value>` List of API keys for the corresponding L1 consensus clients, if needed. Added to the end of the corresponding URL as "?key=\<api-key>" unless a header is defined *Environment: `$L1_CONSENSUS_HOST_API_KEYS`*
* `--l1-consensus-host-api-key-headers <value>` List of header names for the corresponding L1 consensus client API keys, if needed. Added to the corresponding request as "\<api-key-header>: \<api-key>" *Environment: `$L1_CONSENSUS_HOST_API_KEY_HEADERS`*
* `--registry-address <value>` The deployed L1 registry contract address. *Environment: `$REGISTRY_CONTRACT_ADDRESS`*
* `--rollup-version <value>` The version of the rollup. *Environment: `$ROLLUP_VERSION`*
**STORAGE**
* `--data-directory <value>` Optional dir to store data. If omitted will store in memory. *Environment: `$DATA_DIRECTORY`*
* `--data-store-map-size-kb <value>` (default: `134217728`) The maximum possible size of a data store DB in KB. Can be overridden by component-specific options. *Environment: `$DATA_STORE_MAP_SIZE_KB`*
**WORLD STATE**
* `--world-state-data-directory <value>` Optional directory for the world state database *Environment: `$WS_DATA_DIRECTORY`*
* `--world-state-db-map-size-kb <value>` The maximum possible size of the world state DB in KB. Overwrites the general dataStoreMapSizeKb. *Environment: `$WS_DB_MAP_SIZE_KB`*
* `--world-state-checkpoint-history <value>` (default: `64`) The number of historic checkpoints worth of blocks to maintain. Values less than 1 mean all history is maintained *Environment: `$WS_NUM_HISTORIC_CHECKPOINTS`*
**AZTEC NODE**
* `--node` Starts Aztec Node with options
**ARCHIVER**
* `--archiver.blobSinkMapSizeKb <value>` The maximum possible size of the blob sink DB in KB. Overwrites the general dataStoreMapSizeKb. *Environment: `$BLOB_SINK_MAP_SIZE_KB`*
* `--archiver.blobAllowEmptySources <value>` Whether to allow having no blob sources configured during startup *Environment: `$BLOB_ALLOW_EMPTY_SOURCES`*
* `--archiver.blobFileStoreUrls <value>` URLs for filestore blob archive, comma-separated. Tried in order until blobs are found. *Environment: `$BLOB_FILE_STORE_URLS`*
* `--archiver.blobFileStoreUploadUrl <value>` URL for uploading blobs to filestore (s3://, gs\://, file://) *Environment: `$BLOB_FILE_STORE_UPLOAD_URL`*
* `--archiver.blobHealthcheckUploadIntervalMinutes <value>` Interval in minutes for uploading healthcheck file to file store (default: 60 = 1 hour) *Environment: `$BLOB_HEALTHCHECK_UPLOAD_INTERVAL_MINUTES`*
* `--archiver.blobPreferFilestor프로젝트로 돌아가기