Replace The Backend

Decentralizing the backend of your application is fairly easy and is accomplished through the development of "smart contracts" that are deployed on ARISEN. A smart contract consists of actions, data structures and the database design (how data is stored on-chain) surrounding your contract. Actions within a contract typically require a set of parameters (like a function) and can be executed by any ARISEN user or even the contract itself. Contracts also have the ability to execute actions within remote contracts.

Since a smart contract can package an application's business logic within actions, and is responsible for storing the data that derives from these actions, it is the perfect decentralized alternative to the traditional backend. Especially, since data related to the contract's database can be retrieved from the blockchain at any time. Currently, ARISEN contracts must be written in C++ and can be easily compiled and deployed to ARISEN using ARISEN CDT. Frontends can execute specific actions using various SDKs, like ArisenSDK, ARISEN Java and ARISEN Swift and can query a contract's on-chain database using ARISEN's RPC-based API.

note

For more on ARISEN and various smart contract development docs, head over to ARISEN's official documentation here.

caution

What's next?

Learn about how to host and distribute your files on the dWeb here.