Configure your project and blockchain
To build and run a dapp on Chromia, set up your project and configure your blockchain to connect the frontend with the Rell backend for efficient data handling.
A Chromia project is a directory that organizes your Rell code and resources, typically including a chromia.yml
file and modules for dapp logic. Running chr create-rell-dapp
creates a new project with a main.rell
entry and test files.
The chromia.yml
file defines your dapp's configuration, including blockchain settings, deployments, and more. It can be renamed, and most attributes have defaults that only need changing if customization is required.
Key properties in BaseBlockChainConfiguration include signers
, sync
, and configurationfactory
. Block strategy settings cover maxblocksize
and mininterblockinterval
. Default values and types are provided for setup guidance.
The Directory Chain configuration involves defining key module arguments for initializing and managing the chain, including the initial provider, genesis node, and settings for modules such as common
, proposal_blockchain
, and auth_service
.
The Economy Chain configuration defines key parameters for assets, staking, and integration with the EVM network. It includes module arguments for asset identification, staking rewards, and operational limits, such as maximum minting amounts, staking intervals, and transaction bonuses.