# Upgradability

<div data-full-width="true"><figure><img src="https://1439106760-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKN3EFr5qxYFPQP8tyKq7%2Fuploads%2FFcG1pzPuvGZ84OSRLyEx%2Fsat%20endpoint.png?alt=media&#x26;token=ff82a7b9-1490-4db3-a07a-e48931ae0d12" alt=""><figcaption></figcaption></figure></div>

When it comes to upgradability, there has traditionally been a trade-off involving trust. However, this is changing. While smart contracts are typically upgradeable unilaterally by developers, the Sat Endpoint on Ordinals introduces a new structure. Here, developers can release upgrades, and holders have the option to opt into these through re-inscription. This is facilitated by our loader.js file, where the sat endpoint references the latest inscription on the holder's satoshi. This enables holders to select the loader.js file they wish to use for their Ordinal asset.

Our development team can issue upgrades, including new features and fixes for compatibility issues or other unforeseen problems, by re-inscribing an updated version of the loader.js file onto the same sat. Loader.js essentially serves as a directory of JavaScript files used in the project. Over time, we plan to expand this directory and modularize our codebase into distinct components.

We believe this approach is not only elegant but also offers significant advantages over the smart contract paradigm. On Ethereum and other chains, the options are limited to either having a contract that can be unilaterally upgraded or requiring developers to request holders to transition to a new smart contract, effectively splitting the collection. In our model, holders remain within the same collection and have the flexibility to upgrade their assets to the version they prefer, or to opt out entirely.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ninjalerts.gitbook.io/bitcoin-ordinals-pizza-ninjas/upgradability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
