Skip to content

feat(tempo): add remote fee payer transport - #5046

Closed
brendanjryan wants to merge 1 commit into
wevm:mainfrom
brendanjryan:brendanjryan/remote-fee-payer-transport
Closed

brendanjryan wants to merge 1 commit into
wevm:mainfrom
brendanjryan:brendanjryan/remote-fee-payer-transport

Conversation

@brendanjryan

Copy link
Copy Markdown
Collaborator

Motivation

Remote fee-payer services may fill sponsored transactions without providing relay signing or broadcast methods. The existing remote wrapper requires relay capabilities despite its fee-payer naming.

Summary

  • Added withRemoteFeePayer for fill-only remote sponsorship.
  • Exported and documented the transport and migration path.
  • Added routing coverage for sponsored and unsponsored fills.

Key design considerations

  • Routes only eth_fillTransaction requests with feePayer: true to the remote service.
  • Keeps every other RPC method, including raw transaction broadcast, on the default transport.
  • Leaves withRelay behavior and the deprecated withFeePayer alias unchanged.

@vercel

vercel Bot commented Aug 25, 2026

Copy link
Copy Markdown

@brendanjryan is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Aug 25, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 036452b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@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: 036452b76e

ℹ️ 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".

Comment thread src/tempo/index.ts
walletNamespaceCompat,
withFeePayer,
withRelay,
withRemoteFeePayer,

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 Update the Tempo entrypoint export snapshot

Adding this named export changes Object.keys(tempo), but the inline snapshot in src/tempo/index.test.ts still ends with withRelay and therefore fails on every test run. Add withRemoteFeePayer to that snapshot so the entrypoint test reflects the new public API.

Useful? React with 👍 / 👎.

@pkg-pr-new

pkg-pr-new Bot commented Aug 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/viem@5046

commit: 036452b

@jxom jxom closed this Sep 1, 2026
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