@exodus/ledgerhq-cryptoassets

中文文档
11.2.0-exodus.9发布于 2026/06/26Apache-2.0TypeScriptCommonJS近 30 天下载 1.6万

Ledger crypto-assets list

原始使用文档
文档目录31 节
  1. @ledgerhq/cryptoassets
  2. Usage
  3. Importing CAL tokens in cryptoassets data
  4. API
  5. abandonSeedAddresses
  6. getAbandonSeedAddress
  7. registerCryptoCurrency
  8. listCryptoCurrencies
  9. findCryptoCurrency
  10. findCryptoCurrencyByScheme
  11. findCryptoCurrencyByTicker
  12. findCryptoCurrencyById
  13. findCryptoCurrencyByKeyword
  14. hasCryptoCurrencyId
  15. getCryptoCurrencyById
  16. findExchangeCurrencyConfig
  17. hasFiatCurrencyTicker
  18. findFiatCurrencyByTicker
  19. getFiatCurrencyByTicker
  20. listFiatCurrencies
  21. __clearObject
  22. __clearAllLists
  23. listTokens
  24. listTokensForCryptoCurrency
  25. listTokenTypesForCryptoCurrency
  26. findTokenByTicker
  27. findTokenById
  28. hasTokenId
  29. getTokenById
  30. removeTokenFromAllLists
  31. id

@ledgerhq/cryptoassets

Ledger's material for crypto currencies, tokens and fiats. Also includes signatures required by Nano devices for these tokens.

DO NOT EDIT because this library is generated.

Usage

There are two modes of usage of this library.

  • The all-in way: you want to have all the data available (ERC20 token loaded,...). To do this, you simply import @ledgerhq/cryptoassets
  • The custom way: you can import individual data piece from @ledgerhq/cryptoassets/data/*. For instance, importing the ERC20 signatures can be done with @ledgerhq/cryptoassets/data/erc20-signatures sub module.

Importing CAL tokens in cryptoassets data

pnpm import:cal-tokens

API

Table of Contents

abandonSeedAddresses

these are either "dead"/"burn" addresses OR "abandon" seed addresses. These addresses are PUBLIC addresses We use them for tests and also for dry-run estimations DO NOT USE AS RECIPIENT OR SIGN TRANSACTIONS INTO THEM

Type: Partial<Record<any, string>>

getAbandonSeedAddress

Returns a valid address for a given currency. These addresses are PUBLIC addresses We use them for tests and also for dry-run estimations DO NOT USE AS RECIPIENT OR SIGN TRANSACTIONS INTO THEM

Parameters

  • currencyId any

Returns string

registerCryptoCurrency

Parameters

  • currency CryptoCurrency
  • id string

Returns void

listCryptoCurrencies

Parameters

  • withDevCrypto any (optional, default false)
  • withTerminated any (optional, default false)

Returns Array<CryptoCurrency>

findCryptoCurrency

Parameters

  • f any

Returns (CryptoCurrency | null | undefined)

findCryptoCurrencyByScheme

Parameters

  • scheme any

Returns (CryptoCurrency | null | undefined)

findCryptoCurrencyByTicker

Parameters

  • ticker any

Returns (CryptoCurrency | null | undefined)

findCryptoCurrencyById

Parameters

  • id any

Returns (CryptoCurrency | null | undefined)

findCryptoCurrencyByKeyword

Parameters

  • keyword any
  • tests (optional, default ["keywords","name","id","ticker","manager"])

Returns (CryptoCurrency | null | undefined)

hasCryptoCurrencyId

Parameters

  • id any

Returns boolean

getCryptoCurrencyById

Parameters

  • id any

Returns CryptoCurrency

findExchangeCurrencyConfig

Parameters

Returns ({config: string, signature: string} | null | undefined)

hasFiatCurrencyTicker

Parameters

  • ticker any

Returns boolean

findFiatCurrencyByTicker

Parameters

  • ticker any

Returns (FiatCurrency | null | undefined)

getFiatCurrencyByTicker

Parameters

  • ticker any

Returns FiatCurrency

listFiatCurrencies

Returns Array<FiatCurrency>

__clearObject

Only for jest purpose, clean object to be empty

Parameters

  • obj Record<string, (TokenCurrency | Array<TokenCurrency>)>

Returns void

__clearAllLists

Only for jest purpose, clear all the init list

Returns void

listTokens

Parameters

  • options Partial<TokensListOptions>?

Returns Array<TokenCurrency>

listTokensForCryptoCurrency

Parameters

  • currency CryptoCurrency
  • options Partial<TokensListOptions>?

Returns Array<TokenCurrency>

listTokenTypesForCryptoCurrency

Parameters

  • currency CryptoCurrency

Returns Array<string>

findTokenByTicker

Parameters

Returns (TokenCurrency | null | undefined)

findTokenById

Parameters

Returns (TokenCurrency | null | undefined)

hasTokenId

Parameters

Returns boolean

getTokenById

Parameters

Returns TokenCurrency

removeTokenFromAllLists

Delete previous token entry to all array

Parameters

  • token TokenCurrency

id

We clean all the reference of an existing token, if an hash doesn't match. Like this we can update any change from a already added token coming from Dynamic CAL and maintain it up to date without having to release a new version of LLD or LLM

版本与发布记录

@exodus/ledgerhq-cryptoassets 共发布 11 个版本,首次发布于 2023/12/06;过去 12 个月发布了 1 个版本。

版本发布日期距今
11.2.0-exodus.9latest2026/06/264 个月前
11.2.0-exodus.82025/01/091.8 年前
11.2.0-exodus.72024/03/042 年前
11.2.0-exodus.62024/01/262 年前
11.2.0-exodus.52024/01/262 年前
11.2.0-exodus.42023/12/152 年前

关于 @exodus/ledgerhq-cryptoassets 的常见问题

@exodus/ledgerhq-cryptoassets 是什么?

Ledger crypto-assets list

如何安装 @exodus/ledgerhq-cryptoassets?

在项目目录运行 npm install @exodus/ledgerhq-cryptoassets,或使用 pnpm add / yarn add / bun add。

@exodus/ledgerhq-cryptoassets 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@exodus/ledgerhq-cryptoassets 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@exodus/ledgerhq-cryptoassets 可以商用吗?

@exodus/ledgerhq-cryptoassets 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@exodus/ledgerhq-cryptoassets 的下载量有多少?

根据 npm 官方下载统计,@exodus/ledgerhq-cryptoassets 在 2026/10/14 – 2026/11/12 这 30 天内被下载 15,568 次,日均约 519 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@exodus/ledgerhq-cryptoassets 还在维护吗?

最新版本 11.2.0-exodus.9 发布于 2026/06/26(4 个月前);至今共发布 11 个版本,其中过去 12 个月发布了 1 个;首次发布于 2023/12/06。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。