---
title: Cheatcodes
description:
  Powerful testing utilities unique to Surfpool for state manipulation
---

## Clock Semantics

<Callout
  type="warn"
  title="Timestamps are milliseconds; the clock reports seconds"
>
  `surfnet_timeTravel`'s `absoluteTimestamp` is in **milliseconds**, like
  JavaScript's `Date.now()`, but the `Clock` sysvar that programs read reports
  **seconds**. Passing a value straight from the clock back into the cheatcode
  lands in early 1970 — and since the clock only moves forward, the call is
  rejected rather than ignored. Multiply by 1000 first.
</Callout>

For the SDK-level equivalents of the clock cheatcodes, see
[Time Travel](/docs/tools/surfpool/sdk/time-travel).

<CheatcodesRpc />
