Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(utils): filterChains API#4822

Merged
tmm merged 1 commit into
mainfrom
tmm/filter-chains
Jul 8, 2026
Merged

feat(utils): filterChains API#4822
tmm merged 1 commit into
mainfrom
tmm/filter-chains

Conversation

@tmm

@tmm tmm commented Jul 8, 2026

Copy link
Copy Markdown
Member

Adds filterChains API. Useful for working with tokens.

import { filterChains } from 'viem/utils'
import * as chains from 'viem/chains'
import { usdc } from 'viem/tokens'

const usdcChains = filterChains({ chains, token: usdc })

@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5828d75

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

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

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

@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
viem Ready Ready Preview, Comment Jul 8, 2026 8:12pm

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: 5828d75

@tmm tmm force-pushed the tmm/filter-chains branch from 0d69b81 to 5828d75 Compare July 8, 2026 20:09
@tmm tmm merged commit 0ef1b5d into main Jul 8, 2026
33 checks passed
@tmm tmm deleted the tmm/filter-chains branch July 8, 2026 20:53
@github-actions github-actions Bot mentioned this pull request Jul 8, 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.

1 participant