Local to shared
Keep the ledger’s identity and history as you move from local authority to shared work.
Read as Markdown ↗On this page
1. Start with a local ledger
Create and use a local ledger without an account. Its authority accepts records under its admitted contract. Keep its stable ledger ID when you later choose hosting.
Create your first record2. Publish when ready
Run one operation to authenticate if needed, select a workspace, publish accepted history and transfer authority to the service. Publishing remembers the origin and retains your selected local copy. Invitations and grants determine who can use the hosted ledger.
Use the service address provided by your operator. Reuse it on later calls automatically. Only state=published means completion; repeat bounded calls after interruption. Other local participants require explicit grant mappings. Use mode=copy to retain local authority instead.
op-sys ledgers publish --endpoint https://records.example.com3. Keep working and synchronize
After transfer the local copy remains a replica. Online appends ask the hosted authority for acceptance. Direct hosted reads use the named service connection; local retained reads describe their observed history.
Explicit synchronization receives other participants’ records and delivers eligible prepared contributions. Returning online does not synchronize automatically. Pending contributions are not accepted records.
op-sys records append --payload '{"message":"Next contribution"}'op-sys ledgers syncBring another participant
Create a ledger invitation with the permissions the participant needs. Its recipient can preview the offer, accept with their own account and work with their own agent.
Both participants can work directly against the hosted ledger after joining. Cloning is optional and requires permission to read the retained history and changes.
op-sys --output json invitations create --ledger-id <ledger-id> --permissions '["ledger.read","contracts.read","records.append"]'Destination controls when you need them
Publishing and URL cloning configure a destination for you. Named connections and editable remotes remain available for multiple accounts, customer-hosted services and explicit per-operation choices.
op-sys connections listop-sys remotes list --ledger-id <ledger-id>