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 Networks

Last updated 1 year ago

The Retrieve Networks (GET /v1/networks) endpoint is a straightforward resource for obtaining a list of all blockchain networks that are incorporated into the database. This endpoint is vital for developers and users who need to adapt their tools or services to accommodate a variety of blockchain environments.

Parameters

The retrieval process is simple and accessible, as no parameters are required to utilize this endpoint, which provides an unfiltered list of networks.

Responses

  • 200 OK: When called successfully, this endpoint delivers an array in JSON format, reflecting the diverse array of networks that vaults are associated with the database. The array encompasses comprehensive details about each network, ensuring that users have all the necessary information.

The structure of a typical response is as shown:

[
  {
    "name": "string",
    "chainId": 0
  },
  ...
]

Here:

  • name refers to the human-readable name of the network.

  • chainId is the unique identifier assigned to the network which helps distinguish it on a technical level.

By using the Retrieve Networks endpoint, clients can seamlessly access key data about the various blockchain networks available. This information is particularly useful for platforms that need to present network-specific options or carry out network-related analyses.

vaults.fyi