Skip to main content
Arkiv’s MetaMask Sketch App tutorial becomes private by changing three code lines. The same pattern applies to most apps that write with walletClient.createEntity and read with .ownedBy(account).

The diff

store.ts
Both files are in the repository: store-public.ts and store-private.ts.

What changes for the user

Mapping the APIs

Things to check in your app

  • Attribute names are lowercase.
  • Attributes do not carry exact timestamps or precise coordinates. The tutorial’s original timestamp: Date.now() attribute is exactly what check() warns about.
  • Lifetimes fit a bucket: the tutorial’s 365 days is longer than the 90-day maximum.
  • Your UI tolerates a 25–90 second save.
Last modified on October 12, 2026