Synclets logoSynclets

setAtom

The setAtom method writes an Atom value at the specified address in the data tree. The address must match the configured depth. If the sync parameter is true (the default), the change is automatically synchronized to connected peers. Optional Context metadata can be attached to the operation. This method invokes the optional onSetAtom implementation callback after the write completes.

setAtom(
  address: Address,
  atom: Atom,
  context?: Context,
  sync?: boolean,
): Promise<void>
TypeDescription
addressAddress
atomAtom
context?Context
sync?boolean
returnsPromise<void>

Since

v0.0.0