Injective | TS & dApps Docs
DocumentationInjective TS
  • Overview
  • Getting Started
    • Technical Concepts
    • Application Concepts
      • Calculations
        • Min Price Tick Size
        • Min Quantity Tick Size
      • Networks
      • CosmJs Support
    • Assets
      • Creating Tokens
      • Denom Client (deprecated)
      • Injective Lists
    • Running examples
  • Wallets
    • Getting Started
    • Accounts
    • Wallet Connections
    • Wallet Strategy
    • Offchain (Arbitrary) Data
  • Querying
    • Getting Started
    • Chain
      • Auction
      • Auth
      • Bank
      • Distribution
      • Exchange
      • Governance
      • IBC
      • Mint
      • Insurance Funds
      • Oracle
      • Peggy
      • Permissions
      • Staking
      • Tendermint
      • Wasm
      • WasmX
      • Token Factory
    • Indexer
      • Account
      • Auction
      • Derivatives
      • Explorer
      • Insurance Funds
      • Markets
      • Leaderboard
      • Mito
      • Oracle
      • Portfolio
      • Spot
      • Web3Gw Transactions
      • Streaming
        • Account
        • Auction
        • Derivatives
        • Oracle
        • Portfolio
        • Spot
        • Explorer
    • Ethereum (GraphQL)
  • Transactions
    • Getting Started
    • Cosmos
      • Ledger through Keplr Wallet
    • Ethereum
      • Ethereum Ledger
    • MsgBroadcaster
    • Private Key
    • Web3 Gateway
  • Core Modules (& examples)
    • Getting Started
    • Auction
    • AuthZ
    • Bank
    • Distribution
    • Exchange
    • Feegrant
    • Governance
    • IBC
    • Insurance
    • Peggy
    • Permissions
    • Staking
    • Tokenfactory
    • Wasm
  • Smart Contracts
    • Cosmwasm
      • Injective Name Service
      • Neptune Service
      • CW20 to Bank & Market Order in One Transaction
  • Bridges
    • Getting Started
    • Ethereum
    • IBC
    • Wormhole
  • Building Dapps
    • Getting Started
    • Configuring Nuxt
    • Configuring React
    • dApps Examples
      • Smart Contract
      • DEX
      • Bridge
      • Simple HTML example with Webpack
Powered by GitBook
On this page
  1. Getting Started
  2. Assets

Injective Lists

PreviousDenom Client (deprecated)NextRunning examples

Last updated 2 months ago

We have moved the on-chain denoms token metadata to the repository. This repository will aggregate data from several sources and produce a comprehensive token metadata master list.

Here is an example of how to integrate injective-list with the TokenFactoryStatic class:

  1. Download the injective list json file from github: https://github.com/InjectiveLabs/injective-lists?tab=readme-ov-file#-usage

  2. Use the TokenStaticFactory class from the sdk-ts package

import { TokenType, TokenStatic, TokenStaticFactory } from '@injectivelabs/sdk-ts'
import { tokens } from '../data/tokens.json' // json file downloaded from step 1

export const tokenStaticFactory = new TokenStaticFactory(tokens as TokenStatic[])

// After instantiating, we can start using it in our dApp
const denom = 'peggy0x...'
const token = tokenStaticFactory.toToken(denom)

console.log(token)

There are few edge cases that we have to consider while using the TokenFactory:

  • If you are trying to query token metadata for a denom that doesn't exist in the the TokenFactory will return undefined. If so, you should follow our to add the token metadata information in the package.

injective-list
list of tokens
CONTRIBUTION guide