Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Persistent Sandbox State?Forum ↗

Persistent Sandbox State?

App Development4 posts466 views1 likesLast activity Nov 2022
AN
anthonyOP
Mar 2020

Is there a way to persist the sandbox’s state so that it doesn’t get lost if I stop and restart the sandbox?

NE
nemanja
Mar 2020

Hi @anthony,

The easiest thing to do would be to follow these that show how you can attach a PostgreSQL DB to Sandbox for persistence.

Hope this helps :slight_smile:

AR
arya
Nov 2022

@nemanja is this still possible today?

NE
nemanja
Nov 2022

Hi @arya :wave:

Yes, it’s still possible. On the referenced page there’s this section:

Behind the scenes, Sandbox spins up a Canton ledger with an in-memory participant sandbox and an in-memory domain local . You can pass additional Canton configuration files via -c . This option can be specified multiple times and the resulting configuration files will be merged

Then just take a look at setting up persistence with Postgres

← Back to Discussions