> For the complete documentation index, see [llms.txt](https://int-art.gitbook.io/scripty.sol/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://int-art.gitbook.io/scripty.sol/storing-scripts/storing-scripts-with-scriptystorage.md).

# Storing Scripts with ScriptyStorage

Under the hood `ScriptyStorage` uses [`ethfs`](https://github.com/holic/ethfs) which depends on `SSTORE2`. Storage is gas efficient and secured with checksum.&#x20;

You first need to register a script on `ScriptyStorage` and then add code chunks into it.

```javascript
await scriptyStorageContract.createScript("myScript1", stringToBytes("details"))
await scriptyStorageContract.addChunkToScript("myScript1", stringToBytes(script1Chunk0))
await scriptyStorageContract.addChunkToScript("myScript1", stringToBytes(script1Chunk1))

await scriptyStorageContract.createScript("myScript2", stringToBytes("details"))
await scriptyStorageContract.addChunkToScript("myScript2", stringToBytes(script2Chunk0))
await scriptyStorageContract.addChunkToScript("myScript2", stringToBytes(script2Chunk1))
await scriptyStorageContract.addChunkToScript("myScript2", stringToBytes(script2Chunk2))
```
