Murphy Logo Murphy

Token List

A table of tokens and prices with optional user balances.

Token List

TokenMintPriceBalanceValue

Installation

Install dependencies

Start by installing required Murphis dependencies

npx shadcn add table

Add Murphy Token Icon

pnpm dlx shadcn@canary add https://www.murphyai.dev/r/token-icon.json

Add Murphy Token List

pnpm dlx shadcn@canary add https://www.murphyai.dev/r/token-list.json

Basic Usage

import {TokenList} from "@/components/ui/murphy/token-list.tsx"
<TokenList assets={assets} showBalances={false} />

Props

NameTypeDefault
assetsSolAsset[][]
showBalancesbooleantrue
onClick(asset: SolAsset) => void

On this page