vaults.fyi
  • General
    • 🏦Overview
    • 💡Use Cases
      • For Wallets and Apps
      • For Analysts
      • For Protocols & Product Teams
    • 🔎Methodology
      • vaults.fyi USD benchmark rate
      • vaults.fyi ETH benchmark rate
    • ❓FAQ
      • Vault requirements for inclusion on vaults.fyi
    • 🤖AI
  • API
    • Introduction
      • Market data
      • Transactional support
      • Portfolio tracking
      • Personalized insights
  • Endpoints
    • General
    • Detailed Vaults
    • Historical
    • Portfolio
    • Transactions
    • Legacy (v1) endpoints
      • v1 Market data
        • Get historical data
          • Get historical APY and TVL data on single vault over timestamp range
          • Get historical APY on single vault over timestamp range
          • Get historical TVL on single vault at single timestamp
          • Get historical APY on single vault at single timestamp
        • Get data for multiple vaults
        • Get data on single vault
          • Get APY on single vault
        • Get benchmark rates
        • Get supported vaults, networks & tokens
          • /vaults
          • /networks
          • /tokens
          • /tags
      • v1 Contextual insights
        • Top vault options for address
        • Get single top option for address
        • [Etherscan cards] Get top USD, top ETH vault for address
      • v1 Generate payloads
        • Prepare calldata
          • Supply/Deposit
          • Withdraw/Redeem
            • Request redeem
            • Claim redeem
          • Claim rewards
        • Get contract interaction details
        • Get supported assets
        • Get supported vaults
      • v1 Position tracking
        • Get user balances
        • Get user positions
        • Get list of past vault txns by user address
        • Get estimated returns for user's vault position
  • Case Studies
    • Kraken Wallet
    • Etherscan Cards
    • Gauntlet
  • Plans
    • Credits
      • Credits (v1 endpoints)
  • Links
    • vaults.fyi
    • X
    • Farcaster
    • Wallfacer Labs
Powered by GitBook
On this page
  1. API
  2. Introduction
  3. Market data
  4. Insights (Basic)
  5. General Endpoints

Retrieve Tokens

Last updated 1 year ago

The Retrieve Tokens (GET /v1/tokens) endpoint is designed for acquiring a comprehensive list of tokens available on . This endpoint is integral for users who need to access a full spectrum of tokens for analysis, display, or to enhance the functionality of their applications.

Parameters

This endpoint is intuitive and does not necessitate any parameters, offering ease of use and straightforward access.

Responses

  • 200 OK: A successful invocation results in an array of tokens, provided in a JSON format as determined by the Accept header in the request. The array includes detailed information for each token, such as its address, name, decimal precision, affiliated network, and symbol.

A typical example of the response would resemble:

[
  {
    "assetAddress": "string",
    "decimals": 0,
    "name": "string",
    "network": {
      "name": "string",
      "chainId": 0
    },
    "symbol": "string"
  },
  ...
]

Each object in the array stands for a token, where:

  • assetAddress denotes the blockchain address for the token,

  • decimals specifies the number of decimal places for the token's smallest unit,

  • name is the full name of the token,

  • network is an object containing the name and chainId of the blockchain the token operates on,

  • symbol is the abbreviated ticker symbol used to represent the token.

The Retrieve Tokens endpoint empowers users to effortlessly integrate a wide range of token data into their services. It facilitates better user experiences by providing vital token details necessary for analysis.

vaults.fyi