Skip to content

feat: add RPC endpoints to manipulate time#22084

Open
benesjan wants to merge 7 commits intomerge-train/fairiesfrom
jan/f-407-add-an-rpc-endpoint-to-manipulate-time
Open

feat: add RPC endpoints to manipulate time#22084
benesjan wants to merge 7 commits intomerge-train/fairiesfrom
jan/f-407-add-an-rpc-endpoint-to-manipulate-time

Conversation

@benesjan
Copy link
Copy Markdown
Contributor

@benesjan benesjan commented Mar 27, 2026

Summary

Adds RPC endpoints to the Aztec node admin interface for manipulating time in development/testing environments:

  • setNextBlockTimestamp(timestamp) — Sets the L1 timestamp for the next block via evm_setNextBlockTimestamp. Does not mine.
  • advanceNextBlockTimestampBy(duration) — Advances the L1 timestamp by the given duration (in seconds). Does not mine.
  • mineBlock() — Mines an L1 block, ensures we're in a new L2 slot, and forces the sequencer to produce an L2 block.

These endpoints expose time manipulation capabilities through the node admin RPC, enabling sandbox and test environments to control block timestamps without needing direct L1 access.

Closes F-407

Continues from #22008

@benesjan benesjan marked this pull request as draft March 27, 2026 03:31
Base automatically changed from merge-train/fairies to next March 27, 2026 07:58
@benesjan benesjan changed the base branch from next to graphite-base/22084 March 30, 2026 03:36
@benesjan benesjan force-pushed the jan/f-407-add-an-rpc-endpoint-to-manipulate-time branch from 0d144cb to 9d67fa9 Compare March 30, 2026 03:36
@benesjan benesjan changed the base branch from graphite-base/22084 to merge-train/fairies March 30, 2026 03:36
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

"@aztec/noir-noirc_abi": "npm:1.0.0-beta.19"
"@aztec/noir-types": "npm:1.0.0-beta.19"
pako: "npm:^2.1.0"
checksum: 10/8e144df7c33c34852a2e26dfff1efeb6d28b7d55e121f4047f53beee09fc73d5b3ba610e1abd108eb55911e084f346e0d101beb8830d916a79883bc6a78d0b6e
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting this on bootstrap so will just sneak this in here as it's annoying.

@benesjan benesjan force-pushed the jan/f-407-add-an-rpc-endpoint-to-manipulate-time branch from 51b33a2 to 5d00440 Compare March 30, 2026 13:42
@benesjan benesjan marked this pull request as ready for review March 30, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants