# Runtime Environment

<figure><img src="https://lh5.googleusercontent.com/cyWSP3ygfGuazRj4PkBTKM_f4R1KXzH_OavPGKfKFK7ckrDIofBWO4e-yDI5SNSVQpzY80TMmQ5hhrxskzcRqtOf1DiAYSvUdTcrM6_XM7GNM76EYpFH67GdzhacYG1siMXFdBOsNZL73Uk6fieQSDLe_A" alt=""><figcaption></figcaption></figure>

Each SugarFunge node contains a runtime. The runtime contains the business logic of the chain. It defines what transactions are valid and invalid and determines how the chain's state changes in response to transactions. In SugarFunge the runtime code is compiled to Wasm to facilitate runtime upgrades and becomes part of blockchains storage state. Developers can run the pre-designed SugarFunge Node and configure its genesis block.

<br>
