Configuration Options
This page provides a complete reference of all configuration options available in the Starknet Staking v2 validator.
In addition to the core configuration described in the Configuration page, the tool allows for other non-essential customization. You can see all available options by using the --help flag:
# Standalone binary
./build/validator --help
Complete Options Reference
| Option | Environment Variable | Config File | Default | Description |
|---|---|---|---|---|
--provider-http | PROVIDER_HTTP_URL | provider.http | - | HTTP endpoint for JSON-RPC calls |
--provider-ws | PROVIDER_WS_URL | provider.ws | - | WebSocket endpoint for real-time updates |
--signer-op-address | SIGNER_OPERATIONAL_ADDRESS | signer.operationalAddress | - | Your validator's operational address |
--signer-priv-key | SIGNER_PRIVATE_KEY | signer.privateKey | - | Private key for internal signing |
--signer-url | SIGNER_EXTERNAL_URL | signer.url | - | URL for external signing service |
--reward-address | REWARD_ADDRESS | reward.address | - | Reward account address, used by the auto-claim rewards feature |
--reward-priv-key | REWARD_PRIVATE_KEY | reward.privateKey | - | Reward account private key, for internal signing of the claim transactions |
--reward-signer-url | REWARD_EXTERNAL_URL | reward.url | - | URL for external signing of the claim transactions |
--reward-claim-threshold | REWARD_CLAIM_THRESHOLD | reward.claimThreshold | - | Amount of unclaimed rewards, in STRK, that triggers a claim |
--reward-claim-max-fee | REWARD_CLAIM_MAX_FEE | reward.claimMaxFee | Unlimited | Max fee, in FRI, to pay for a claim transaction |
--reward-braavos-account | REWARD_BRAAVOS_ACCOUNT | reward.braavos | false | Set it if the reward account is a Braavos account |
--config | - | - | - | Path to JSON configuration file |
--staking-contract-address | - | - | Auto-detected | Custom staking contract address |
--attest-contract-address | - | - | Auto-detected | Custom attestation contract address |
--max-tries | - | - | 10 | Maximum attempts to get attestation info (or "infinite") |
--balance-threshold | - | - | 100 | Triggers a warning if it detects the signer account (i.e. operational address) stark balance, or the reward account one when the auto-claim feature is configured, below the specified threshold. One stark equals 1e18 |
--log-level | - | - | info | Set logging level (trace, debug, info, warn, error) |
--metrics | - | - | false | Enable metrics server |
--metrics-host | - | - | localhost | Metrics server host |
--metrics-port | - | - | 9090 | Metrics server port |
--braavos-account | - | - | false | Enable Braavos account support (experimental) |
Additional Configuration Details
-
Contract Addresses: Using specific staking and attestation contract addresses through the
--staking-contract-addressand--attest-contract-addressflags respectively. If no values are provided, sensible defaults are provided based on the network id. -
Max Tries:
--max-triesallows you to set how many attempts the tool does to get attestation information. It can be set to any positive number or to "infinite" if you want the tool to never stop execution. Defaults to 10. -
Balance Threshold:
--balance-thresholdrepresents the balance amount you want your signer account to be above of. If the auto-claim reward feature is configured, the same threshold also applies to the reward account. Checks are performed after every attestation window ends and if a balance is below the specified amount a warning is emitted. Defaults to 100 STRK. -
Log Level:
--log-levelset's the tool logging level. Default toinfo. -
Braavos Account:
--braavos-accountchanges the transaction version format from0x3to1<<128 + 0x3required by Braavos accounts. Note that this is still an experimental feature. It only applies to the operational account: use--reward-braavos-accountfor the reward account. -
Auto-Claim Rewards: the
--reward-*options configure the optional automatic claiming of the staking rewards. If any of them is set,--reward-address,--reward-claim-thresholdand exactly one of--reward-priv-keyor--reward-signer-urlare required. See Auto-Claim Rewards for the details.