NES.TECH Documentation
  • 👋Welcome to NES.TECH
  • Overview
    • 💡What we do
  • SDKs Guide
    • 📪Kickstart with our SDKs
    • ⛓️Blockchain SDKs
      • 📌Solana SDK
        • ⛏️generateAccount
        • ⛏️getAccountFromSecretKey
        • ⛏️getBalance
        • ⛏️sendSOL
        • ⛏️mintNFT
        • ⛏️estimateTransferToken
        • ⛏️estimateMint
        • ⛏️estimateSOLTransfer
        • ⛏️estimateMintToken
        • ⛏️createToken
        • ⛏️transferToken
      • 📌EVM Chains SDK
        • ⛏️BulkNFT
          • 🔗deployContract
          • 🔗bulkMint
        • ⛏️NFT
          • 🔗deployContract
          • 🔗mint
          • 🔗convertToVLRY
          • 🔗VLRYToUSD
          • 🔗VLRYToCRYPTO
          • 🔗transferOwnership
          • 🔗transfer
          • 🔗estimateFee
            • 📌ERC20
              • ⛏️deploy
              • ⛏️mint
              • ⛏️transfer
            • 📌ERC721
              • ⛏️deploy
              • ⛏️mint
              • ⛏️transfer
            • 📌ERC1155
              • ⛏️deploy
              • ⛏️mint
              • ⛏️transfer
            • 📌Soulbound
              • ⛏️deploy
              • ⛏️mint
        • ⛏️Contracts
          • 🔗ERC20
            • 📌deployContract
            • 📌transfer
            • 📌mint
          • 🔗ERC721
            • 📌deployContract
            • 📌transfer
            • 📌mint
            • 📌approve
          • 🔗ERC1155
            • 📌deployContract
            • 📌transfer
            • 📌mint
            • 📌balanceOf
          • 🔗Soulbound
            • 📌deployContract
        • ⛏️Wallet
          • 🔗getBalance
          • 🔗sendEther
          • 🔗depositEther
          • 🔗checkIfAddress
        • ⛏️NFTMarketPlace
          • 🔗listNFT
          • 🔗buyNFT
          • 🔗getNFT
          • 🔗placeBid
          • 🔗transferNFT
        • ⛏️BlockchainInfo
          • 🔗availableBlockchains
          • 🔗availableContracts
      • 📌Tokenomics SDK
        • ⛏️createStake
        • ⛏️removeStake
        • ⛏️approveVolary
        • ⛏️transferVolary
        • ⛏️getBalance
        • ⛏️claimRewards
        • ⛏️addRewards
        • ⛏️swapVlry
        • ⛏️getSwapAmountVolary
      • 📌Storage SDK
        • ⛏️uploadToIPFS
        • ⛏️fetchMetadata
      • 📌Casper SDK
        • ⛏️generateWallet
        • ⛏️fetchWalletFromPrivateKey
        • ⛏️fetchAccountHash
        • ⛏️getBalance
        • ⛏️transferTokens
        • ⛏️deployNFTContract
        • ⛏️mintNFT
        • ⛏️mintFreeNFT
        • ⛏️checkNFT
        • ⛏️approveSale
        • ⛏️transferNFT
        • ⛏️getNftOwner
        • ⛏️bid
        • ⛏️startBidding
        • ⛏️closeBidding
        • ⛏️cancelAuction
        • ⛏️getUserData
        • ⛏️getNftInfo
        • ⛏️getContractDetails
        • ⛏️getWalletDetails
        • ⛏️checkPublicKey
        • ⛏️getAllAuctionNft
        • ⛏️transferWithRoyalty
        • ⛏️getPaymentAmounts
        • ⛏️transferPlaceBidAmount
      • 📌XY-Finance SDK
        • ⛏️getRecommendedTokens
        • ⛏️getQuote
        • ⛏️approveSwap
        • ⛏️executeSwap
      • 📌Wallet SDK
        • ⛏️createWallet
        • ⛏️getKeys
          • 🔗btc
          • 🔗evm
          • 🔗sol
          • 🔗near
        • ⛏️transfer
          • 🔗evm
          • 🔗sol
          • 🔗btc
          • 🔗near
        • ⛏️estimateFee
          • 🔗evm
          • 🔗sol
        • ⛏️txStatus
          • 🔗evm
          • 🔗sol
          • 🔗near
        • ⛏️getBalanceByMnemonic
          • 🔗evm
          • 🔗sol
          • 🔗btc
          • 🔗near
        • ⛏️chainBalances
          • 🔗evm
          • 🔗sol
        • ⛏️testChainBalances
        • ⛏️getTotalBalanceInUSDByAddresArray
          • 🔗evm
          • 🔗sol
        • ⛏️isAddress
          • 🔗evm
          • 🔗sol
        • ⛏️isPrivateKey
          • 🔗evm
          • 🔗sol
        • ⛏️isMnemonic
          • 🔗evm
      • 📌Explorer SDK
        • ⛏️getLatestTxsOfAddress
        • ⛏️getLatestTxs
        • ⛏️getTransferFromAddress
    • 🤖AI Guide
      • 📌Overview
      • 📌Face Recognition
        • ⛏️faceRecoRegisterUser
        • ⛏️faceRecoCompareFaceWithId
        • ⛏️faceRecoCompareFaceWithFace
      • 📌Check Toxicity
        • ⛏️checkToxicityImage
        • ⛏️checToxicityTest
      • 📌Caption and Tag Generator
        • ⛏️generateCaptionAndTagsFromImage
      • 📌Stable Diffusion
        • ⛏️stableDiffusionGenerateImage
      • 📌Image Similarity
        • ⛏️imageSimilarityTrain
        • ⛏️imageSimilarityTest
  • Template Library
    • 🛠️Get Started
    • 🕵️Technical Overview
    • 👷Smart Contracts
      • 📌ERC721
      • 📌ERC721A
      • 📌ERC1155
      • 📌Soulbound
      • 📌ERC6551
        • 📌Account
        • 📌Registry
      • 📌Fractional
      • 📌BiDirectionalPaymentChannel
      • 📌Swap
      • 📌ERC2981
      • 📌Flashloans
      • 📌Vault
      • 📌ERC884
      • 📌Play To Earn Contract
      • 📌Escrow
      • 📌UpgradableNFTContract
    • ⚖️Templates Library
      • 🥇Music Tracks/Album
      • 🥇Loyalty Point System
      • 🥇Real Estate Ownership
      • 🥇Artwork Authentication
      • 🥇Crowdfunding Platform
      • 🥇Social Tokens
      • 🥇Food and Recipe
      • 🥇Scientific Research
      • 🥇Educational Certification
      • 🥇Trading Cards
      • 🥇Digital Fashion
      • 🥇Bulk Digital Fashion
      • 🥇Governance Token
      • 🥇Content Licenses
      • 🥇Membership Cards
      • 🥇Bulk Membership Cards
      • 🥇Artifacts
      • 🥇Debt Instruments
      • 🥇Bulk Debt Instruments
      • 🥇Profit Sharing
      • 🥇Digital Souvenirs
      • 🥇Fractional Ownership of Intellectual Property
      • 🥇Digital Autographs and Signature
      • 🥇Bulk Digital Autographs and Signature
      • 🥇Film and Media Rights
      • 🥇Bulk Film and Media Rights
      • 🥇Sports Achievements
      • 🥇Bulk Sports Achievements
      • 🥇Digital Comics and Graphic Novels
      • 🥇Bulk Digital Comics and Graphic Novels
      • 🥇Proposals and Voting
      • 🥇Music Royalties
      • 🥇Gaming Royalties
      • 🥇Art Token Aggregation
      • 🥇Medical Token Aggregation
      • 🥇Charity Token Aggregation
      • 🥇Travel Token Aggregation
      • 🥇Time-Limited Access Tokens
      • 🥇Virtual Art Exhibition
  • KRYPTOKASE
    • 🛠️KryptoKase: Overview
    • 🕵️Technical Overview
    • 👷Functionalities
      • 📌Create Token
      • 📌Mint Token
      • 📌Transfer Tokens
      • 📌Airdrop Token
      • 📌Schedule Vesting
      • 📌Token Analytics
  • AERIE
    • 🏆Introduction
      • 📌Overview
      • 📌Use Cases
    • 📖User Guide
      • 📌Dashboard
      • 📌Managing Assets
        • 🔗Creating Assets
      • 📌Wallet Management
        • 🔗Overview
      • 📌Client Management
        • 🔗Adding Client
        • 🔗Managing Members
      • 📌Invoice Management
        • 🔗Managing Tickets
    • 📌Features
      • 🔗AI Image Generation
      • 🔗Portfolio Management
      • 🔗CDN Analytics
  • ROMULUS
    • Contracts
      • Dynamic NFT
      • Rental NFT
      • ERC 998
      • Fractional NFT
  • Layer 1
    • 🗡️DAG-EVM Hybrid Layer 1
    • ⛓️Setting up an RPC/RO Node
    • 👾Node Functions
      • 📍ftm.call()
      • 📍ftm.chainId()
      • 📍ftm.contract()
      • 📍ftm.currentEpoch()
      • 📍ftm.estimateGas()
      • 📍ftm.feeHistory()
      • 📍ftm.fillTransaction()
      • 📍ftm.filter()
      • 📍ftm.getAccounts()
      • 📍ftm.getBalance()
      • 📍ftm.getBlock()
      • 📍ftm.getBlockByHash()
      • 📍ftm.getBlockByNumber()
      • 📍ftm.getBlockNumber()
      • 📍ftm.getBlockTransactionCount()
      • 📍ftm.getBlockUncleCount()
      • 📍ftm.getCode()
      • 📍ftm.getCoinbase()
      • 📍ftm.getCompilers()
      • 📍ftm.getEvent()
      • 📍ftm.getGasPrice()
      • 📍ftm.getHashrate()
      • 📍ftm.getHeaderByHash()
      • 📍ftm.getHeaderByNumber()
      • 📍ftm.getHeads()
      • 📍ftm.getMaxPriorityFeePerGas()
      • 📍ftm.getPendingTransactions()
      • 📍ftm.getProof()
      • 📍ftm.getProtocolVersion()
      • 📍ftm.getStorageAt()
      • 📍ftm.getTransaction()
      • 📍ftm.getTransactionCount()
      • 📍ftm.getTransactionReceipt()
      • 📍ftm.icapNamereg()
      • 📍ftm.isSyncing()
      • 📍ftm.namereg()
      • 📍ftm.sendRawTransaction()
      • 📍ftm.signTransaction()
    • 🎫Admin Node Functions
      • 📍admin.addPeer()
      • 📍admin.addTrustedPeer()
      • 📍admin.exportChain()
      • 📍admin.getNodeInfo()
      • 📍admin.getPeers()
      • 📍admin.importChain()
      • 📍admin.removePeer()
      • 📍admin.removeTrustedPeer()
      • 📍admin.startHTTP()
      • 📍admin.startWS()
      • 📍admin.stopHTTP()
      • 📍admin.stopWS()
    • 📄Oracle Contracts
      • 📌Traffic Feed Contract
      • 📌Air Quality Feed Contract
      • 📌Football Player Feed Contract
      • 📌Stock Price Feed Contract
      • 📌Weather Feed Contract
      • 📌Crypto Price Feed Contract
      • 📌Random Number Contract
Powered by GitBook
On this page
  • Description
  • Parameters
  • Response
  • Example Request and Response
  • Prerequisites
  • Request
  • Response
  • Use Cases
  1. SDKs Guide
  2. Blockchain SDKs
  3. EVM Chains SDK
  4. BlockchainInfo

availableBlockchains

Description

The availableBlockchains function is an asynchronous function that retrieves a list of available blockchains supported by the blockchain gateway.

Parameters

This function does not take any parameter.

Response

ield
Data Type
Description

code

number

A numeric value indicating the execution status (1 for success, 0 for error).

error

any

The error object containing details about the encountered error, if applicable.

blockchains

array

An array of available blockchains. Each blockchain is represented as a string.

Example Request and Response

Prerequisites

Before making requests with Nest SDK, you must have it installed.

You can install Nest SDK using either npm or yarn. Use the following commands to install Nest SDK:

npm install @nest25/evm-chains-lib
OR
yarn add @nest25/evm-chains-lib

Request

Here is an example of how to make a availableBlockchains request using the Nest SDK:

const { BlockchainInfo } = require('@nest25/evm-chains-lib');

const info = new BlockchainInfo();

async function main() {
    const response = await info.availableBlockchains()
    console.log(response)
}

main();

Response

 {
        code: 1,
        blockchains: [
          {
            name: 'Ethereum',
            symbol: 'ETH',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/ethereum-eth-logo.png',
            explorer: 'https://goerli.etherscan.io',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Binance Smart Chain',
            symbol: 'BNB',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/bnb-bnb-logo.png',
            explorer: 'https://testnet.bscscan.com',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Polygon',
            symbol: 'MATIC',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/matic-logo.webp',
            explorer: 'https://mumbai.polygonscan.com',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Avalanche',
            symbol: 'AVA',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/avalanche-avax-logo.png',
            explorer: 'https://testnet.snowtrace.io',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Klaytn',
            symbol: 'KLAY',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/klaytn-klay-logo.png',
            explorer: 'https://baobab.scope.klaytn.com',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Volary',
            symbol: 'VLRY',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/vlry.png',
            explorer: 'https://explorer.volary.io',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Casper',
            symbol: 'CSPR',
            nft: false,
            wallet: false,
            evm: false,
            logo: 'https://ik.imagekit.io/nest/casper-cspr-logo.png',
            explorer: 'https://testnet.cspr.live',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Solana',
            symbol: 'SOL',
            nft: true,
            wallet: true,
            evm: false,
            logo: 'https://ik.imagekit.io/nest/solana-sol-logo.png',
            explorer: 'https://solscan.io/?cluster=devnet',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Aurora',
            symbol: 'AUR',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/aurora.png',
            explorer: 'https://explorer.testnet.aurora.dev',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Moonbeam',
            symbol: 'GLMR',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/moonbeam.png',
            explorer: 'https://moonbase.moonscan.io',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Gnosis',
            symbol: 'GNO',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/gnosis-gno-gno-logo.png',
            explorer: 'https://beacon.gnosisscan.io',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Optimism',
            symbol: 'OP',
            nft: true,
            evm: true,
            wallet: true,
            logo: 'https://ik.imagekit.io/nest/optimism-ethereum-op-logo.png',
            explorer: 'https://goerli-optimism.etherscan.io',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Arbitrum',
            symbol: 'ARB',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/arbitrum-arb-logo.png',
            explorer: 'https://testnet.arbiscan.io',
            hasEnoughBalance: [Object]
          },
          {
            name: 'Celo',
            symbol: 'CELO',
            nft: true,
            wallet: true,
            evm: true,
            logo: 'https://ik.imagekit.io/nest/celo-celo-logo.png',
            explorer: 'https://explorer.celo.org/baklava/',
            hasEnoughBalance: [Object]
          }
        ]
      }

Use Cases

  • The availableBlockchains function can be used to fetch a list of available blockchains supported by the blockchain gateway. It can be helpful when providing a selection of blockchains for users to choose from or when validating the blockchain input in other functions.

Last updated 1 year ago

⛓️
📌
⛏️
🔗