The node is configurable through environment variables. (There is no other way to configure it.)
This file documents the configuration options.
If set, the node will use the AWS KMS service with this key ID to sign transactions.
Must be set alongside CARTESI_AUTH_AWS_KMS_REGION
.
- Type:
string
An AWS KMS Region.
Must be set alongside CARTESI_AUTH_AWS_KMS_KEY_ID
.
- Type:
string
One of "private_key", "private_key_file", "mnemonic", "mnemonic_file", "aws".
- Type:
AuthKind
- Default:
"mnemonic"
The node will use the private key generated from this mnemonic to sign transactions.
- Type:
string
When using mnemonics to sign transactions, the node will use this account index to generate the private key.
- Type:
int
- Default:
"0"
The node will use the private key generated from the mnemonic contained in this file to sign transactions.
- Type:
string
The node will use this private key to sign transactions.
- Type:
string
The node will use the private key contained in this file to sign transactions.
- Type:
string
Block subscription timeout in seconds.
- Type:
int
- Default:
"60"
The node assumes that blocks offseted by N from the current block have reached finality (N is the read depth).
- Type:
int
- Default:
"10"
HTTP endpoint for the blockchain RPC provider.
- Type:
string
An unique identifier representing a blockchain network.
- Type:
uint64
If set to true the node will send transactions using the legacy gas fee model (instead of EIP-1559).
- Type:
bool
- Default:
"false"
WebSocket endpoint for the blockchain RPC provider.
- Type:
string
Address of the DApp's contract.
- Type:
string
Address of the Authority contract.
- Type:
string
Address of the History contract.
- Type:
string
Address of the InputBox contract.
- Type:
string
The deployment block for the input box contract. The node will begin to read blockchain events from this block.
- Type:
int64
When enabled, prints server-manager output to stdout and stderr directly. All other log configurations are ignored.
- Type:
bool
- Default:
"false"
When enabled, the node does not start Redis. It must be configured with an external Redis endpoint.
- Type:
bool
- Default:
"false"
External Redis endpoint for the node when running in the experimental sunodo validator mode.
- Type:
string
If set to true, the authority-claimer service is disabled.
- Type:
bool
- Default:
"false"
If set to true, the node will not check whether the Cartesi machine hash from the snapshot matches the hash in the Application contract.
- Type:
bool
- Default:
"false"
If set to true, the node will run in host mode.
In host mode, computations will not be performed by the cartesi machine. You should only use host mode for development and debugging!
- Type:
bool
- Default:
"false"
If set to true, the node will not generate any claims.
- Type:
bool
- Default:
"false"
HTTP address for the node.
- Type:
string
- Default:
"127.0.0.1"
HTTP port for the node. The node will also use the 20 ports after this one for internal services.
- Type:
int
- Default:
"10000"
One of "debug", "info", "warn", "error".
- Type:
LogLevel
- Default:
"info"
If set to true, the node will add colors to its log output.
- Type:
bool
- Default:
"false"
Postgres endpoint in the 'postgres://user:password@hostname:port/database' format.
If not set, or set to empty string, will defer the behaviour to the PG driver. See this for more information.
It is also possible to set the endpoint without a password and load it from Postgres' passfile. See this for more information.
- Type:
string
- Default:
""
Length of a rollups epoch in blocks.
At the end of each epoch, the node will send claims to the blockchain.
- Type:
uint64
- Default:
"7200"
Path to the directory with the cartesi-machine snapshot that will be loaded by the node.
- Type:
string