What are Chromia extensions?
Chromia extensions serve as pre-built docker images that add specialized features or services to containers within the Chromia ecosystem. They help developers seamlessly integrate additional functionality without needing to write new code or modify existing applications. Acting as modular solutions, these extensions enable blockchain applications to scale and adapt to the specific needs of each project.
The primary goal of Chromia Extensions is to offer a simple and efficient way to implement complex functionalities. Developers can integrate off-chain data (via oracles), perform advanced computations (like AI inference), or optimize data management. These tools empower developers to create innovative solutions for various sectors, including financial services, gaming platforms, and supply chain management. By leveraging Chromia extensions, developers enhance and adapt decentralized applications, reducing the time and effort needed to implement sophisticated technologies.
Advantages and limitations
Chromia extensions offer developers significant benefits but also present certain limitations that they should consider before use.
Advantages:
- Modularity and flexibility: Developers can quickly add specialized features, such as off-chain data integration, using extensions without building new functionalities from scratch.
- Pre-built solutions: Developers have access to ready-to-use tools, which significantly reduce their development time and effort.
- Seamless compatibility: Extensions integrate smoothly with containers, ensuring reliable operation and easy deployment, as they are designed with Chromia's architecture in mind.
- Free accessibility: At launch, developers can access Chromia extensions free of charge, allowing them to experiment and explore new features without incurring financial costs.
Limitations:
- One extension per container: Each container supports only one active extension.
- Immutability: Once developers add an extension, they cannot remove or modify it. This permanence requires careful planning during setup to ensure compatibility and maintain container stability within the Chromia ecosystem.
- Cluster-specific availability: The availability of extensions depends on the cluster where the container is deployed. Some extensions can be accessed across the entire network, while others require approval at the cluster level through a vote by the cluster's governors.
How to obtain a Chromia extension
If the container doesn't exist yet
- Go to the Staking page.
- Connect your preferred wallet to the platform.
- Bridge any amount of CHR to Chromia or stake 10 CHR to create an account if you need to.
- Open the Containers tab at the top of the page, select My Containers, and click Lease a new container.
- Choose the cluster where you want to lease the container. The availability of extensions may vary by cluster.
- Specify the required resources for your container and select your desired extension from the dropdown menu.
- Click Lease and confirm the transaction in your wallet.
- Go to the List of containers section to confirm that your container is activated with the applied extension.
If the container already exists:
- Go to the Staking page.
- Connect your preferred wallet to the platform.
- Navigate to the List of containers section, select the container you want to modify, and open its settings.
- Choose the desired extension from the available options and click Save changes.