Skip to content

feat: support keyed nonce rpc queries - #493

Merged
jxom merged 1 commit into
mainfrom
jxom/keyed-nonce-rpc-main
Sep 29, 2026
Merged

jxom merged 1 commit into
mainfrom
jxom/keyed-nonce-rpc-main

Conversation

@jxom

@jxom jxom commented Sep 29, 2026

Copy link
Copy Markdown
Member

Added optional nonceKeys to eth_getTransactionCount types and codecs, preserving account nonce requests and scalar results under the EIP-8250 extension in ethereum/execution-apis#907.

@vercel

vercel Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
ox Ready Ready Preview Sep 29, 2026 2:16am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T02:15:13.460690Z cc05d79 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pkg-pr-new

pkg-pr-new Bot commented Sep 29, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/ox@493

commit: cc05d79

@jxom
jxom merged commit 7a7b37d into main Sep 29, 2026
15 of 16 checks passed
@jxom
jxom deleted the jxom/keyed-nonce-rpc-main branch September 29, 2026 02:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cc05d79682

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

import * as z_TransactionRequest from '../../TransactionRequest.js'
import * as z_Uint from '../../Uint.js'
import * as z from 'zod/mini'
import * as Frame from '../Frame.js'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Rename the Zod namespace import to z_Frame

Importing the Zod module namespace as Frame violates the repository-wide z_<Module> naming convention used by every neighboring schema import; rename it to z_Frame and update the new reference accordingly.

AGENTS.md reference: AGENTS.md:L14-L14

Useful? React with 👍 / 👎.

params: z.tuple([
z_Address.Address,
BlockNumberOrTagOrIdentifier,
z.optional(Frame.nonceKeysToRpc),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Decode keyed sequences without number overflow

When a keyed nonce sequence is above Number.MAX_SAFE_INTEGER, this method still decodes its result through z_Number.Number, whose output schema rejects values above that limit. EIP-8250 sequences are valid through 2^64 - 2 (as enforced by src/core/internal/frameNonce.ts), so a valid keyed query result such as 0x20000000000000 now fails decoding; the return codec needs a bigint-capable representation while preserving legacy behavior where required.

Useful? React with 👍 / 👎.

This branch was successfully deployed

1 active deployment
Preview — cc05d796 Deployed Sep 29, 2026 by vercel[bot]
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.

1 participant