Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

@wormhole-foundation/sdk-icons

Package Overview
Dependencies
Maintainers
3
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wormhole-foundation/sdk-icons

This package contains icons for all of the Wormhole connected [chains](https://docs.wormhole.com/wormhole/reference/blockchain-environments).

Source
npmnpm
Version
4.9.1
Version published
Maintainers
3
Created
Source

Wormhole Icons

This package contains icons for all of the Wormhole connected chains.

Installation

Basic

Install this package

npm install @wormhole-foundation/sdk-icons

Usage

Getting started is simple, just import Wormhole and the Platform modules you wish to support

import { Chain } from "@wormhole-foundation/sdk-base";
import { chainToIcon } from "@wormhole-foundation/sdk-icons";

function ChainIcon({chain}: {chain: Chain}) {
    const icon = chainToIcon(chain);
    return icon ? <img src={icon} alt={chain} height="32px" width="32px" /> : null
}

Development

SVGs for each chain should be included only once in src/images/chains and they should be minified using a tool like SVGOMG to reduce the overall bundle size.

When a new chain is added, the strict typing should enforce that this package must be updated. In most cases, this should be as simple as dropping the SVG in /src/images/chains and running npm run gen

FAQs

Package last updated on 27 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts