Covalent Launches Non-EVM Support with Solana Balances | Covalent (2024)

TL;DR:

  • Covalent adds support for Solana to its API Reference endpoint, bringing the industry-leading unified API experience to tens of thousands of developers in the Solana ecosystem.
  • Get token balances for address enables developers to fetch token balances including NFTs for any wallet address on Solana with a single API call.
  • With this new data, developers can include Solana assets in multi-chain crypto wallets, NFT galleries and more.
  • Covalent has submitted a patch, and once approved will have a 90% replica of all historical on-chain data, meaning; mints, transactions, and everything else that has happened since the genesis block.

Why Solana?

Over the past 4 years, Covalent has been laser-focused on pushing the Web3 space forward. Hundreds of projects on the 26+ blockchains that we support, rely on Covalent for their indexing and querying services. The magic of Covalent is the single parameter chain_id that can be used to query data from the 26+ blockchains we support.

Our vision for entering the Solana ecosystem is to empower developers to build more compelling end-user applications, many of them as of yet undiscovered. Covalent is the tool that enables one billion possibilities, by providing all blockchain data in one place in a standardized and easy-to-read format.

Solana is the fastest blockchain on the market, focused on scaling applications to support adoption while keeping costs at a minimum. Since the summer of 2021, the new blockchain for indexing our community requested most frequently is Solana. Typically, we can index a blockchain end-to-end in a matter of weeks, so why has it taken so long to add support when the demand has been insatiable?

The Road to Solana

Indexing Solana is no easy task. We've been able to index 26+ blockchains so far, but they all had a critical piece of underlying architecture in common... the EVM.

The Ethereum Virtual Machine (EVM) is the execution engine initially invented for the Ethereum blockchain. The EVM is now an industry staple for all popular smart-contract blockchains. The top blockchains we've indexed - Polygon, Avalanche and Fantom are all EVM based.

Solana is THE first non-EVM blockchain we're adding support for. 😘

What makes Solana different?

Solana is what we call a non-EVM chain, meaning the underlying function is not like any of the blockchains we've indexed to date. Solana’s unique architecture makes it faster and cheaper than other blockchains, but it also means that we have to make adjustments to export the data in a way that matches our standards.

🛒 Analogy:

Imagine walking into a grocery store that you shop at regularly. If you visit a grocery store from the same chain in a different city, it's still generally set up the same way and you know how to navigate it.

Now, imagine you're in an entirely different country. The stores here are all unique, and the labels are in a different language. It takes you a little longer to find your usual groceries in this case.

This is the difference between EVM chains and non-EVM chains.

In the case of Solana, we're now familiar with the new store layout and we've learned the language on the labels. Starting with the balances endpoint as we are today is just step one in the journey to provide granular, historical, on-chain data for Solana side-by-side the other 26+ chains we index.

Why Covalent?

The Covalent API is battle-tested by tens of thousands of developers across hundreds of applications. Currently, developers have access to Solana data through getTokenAccountsByOwner RPC endpoints, but Covalent goes above and beyond the RPC layer to fetch both current and historical data on token holders, robust transactions, NFT metadata and market data, and more.

The developer experience with Covalent will never require users to write complex and time-consuming indexing code to extract data. Rather, the developer experience should remain unchanged even as we expand to more non-EVM chains. We believe in doing the heavy lifting to enable the lightest and fastest user experience. Make things easy for developers and WAGMI. 💪

Quote from Ganesh Swami, Covalent CEO & Co-founder

“ We’re excited to be entering the Solana ecosystem and bringing our standard of granular, historical, on-chain data to this highly-requested blockchain. Solana presents a fresh challenge with its unique architecture which we’re eagerly adapting to. Today it’s token balances, tomorrow it’s everything.

How we enhance Solana data

You can skip this section if you're not technical.

The getTokenAccountsByOwner RPC endpoint is a fantastic start. For context, there is no equivalent endpoint on Ethereum that can get all of the tokens within a user wallet.

However, the response from the RPC endpoint is not that useful in practice. In fact, it can be quite painful to make this data useful. We've taken these challenges off of developers and instead have provided solutions that together lead to a smooth developer experience. Eg:

  • NFT Metadata - The RPC response from a Solana node only returns the NFTs, but not their metadata. There are two additional calls a developer will have to make before being able to render the image or show details about the NFT.
  • Token pricing - We've mapped most of the common tokens back to their Ethereum counterparts. We will be developing a Solana-native pricing engine for assets that live exclusively on this blockchain.
  • Matching Slots and Blocks - The RPC response only returns the current slot for a transaction, but not all slots have blocks. We have a special data worker that can additionally do this mapping for developers.
  • Token logos - We return token logos for the most popular token on Solana

Admittedly, there's a lot more work to do. This is just the beginning.

How to get started

Simply use the API Reference endpoint with a chain_id of 1399811149:

curl "https://api.covalenthq.com/v1/1399811149/address/CNjUuXWcGrx1VUC2QdBozwNak1F4PatjxvAwXhXrsEy8/balances_v2/"

What’s Next?

Covalent Launches Non-EVM Support with Solana Balances | Covalent (1)

Our engineering team is currently blocked by a patch we've developed to extract data from Solana nodes. This patch is necessary to get all historical on-chain data. This means that users will be able to see mints, transactions, and everything else that has happened since the genesis block.

We will soon support Solana in all of our Class A endpoints, matching our high standard of rich, clean, and formatted blockchain data. Once Class A endpoints are supported, developers will be able to solve use-cases that have previously been untouched due to their need for historical data, for example, taxation tools, analytics across various time ranges, and detailed information on token holders and token transfers are some of the ways that we will go deeper than the RPC layer to give developers an advantage with their applications.

In the coming weeks, we will release a code template for building a wallet on Solana. These templates, which can be found on our Replit, are an easy way for anyone to get started and modify an existing project into something unique!

Resources

Here are some links for further exploration:

Covalent Launches Non-EVM Support with Solana Balances | Covalent (2024)

FAQs

Does Solana use EVM? ›

Neon EVM is a Solana-compatible environment that follows Ethereum virtual machine rules yet processes transactions to the Solana Network.

Does Solana support NFT? ›

Solanart is an NFT marketplace that offers effortless access to digital collectibles, enabling users to explore, purchase, and sell NFTs from various collections and artists.

What blockchains are EVM enabled? ›

EVM compatibility refers to the ability for a blockchain to run the EVM and execute Ethereum smart contracts. This means that developers can write & deploy the same smart contracts across multiple EVM blockchains, without needing to make significant changes to their code.

Which blockchains use EVM? ›

EVM compatibility is a good stepping-stone in solving this issue, proven by some of the most used blockchains currently: Avalanche, Binance Smart Chain, Fantom Opera, and Polygon.

What are the disadvantages of Solana? ›

Solana Cons
  • Less adaptability than Ethereum.
  • Less secure than Ethereum.
  • Less decentralization (fewer nodes) than Ethereum.

What wallet supports Solana network? ›

Quick Look: The 7 Best Solana Wallets in 2024
  • Phantom Wallet: Most Popular Solana Wallet.
  • Solflare: Best Solana-only Wallet.
  • Exodus: Best for Customer Support.
  • Coinbase Wallet: Best for Beginners.
  • Atomic Wallet: Best for Staking Rewards.
  • Glow: Best for iOs.
  • Ledger: Best Hardware Wallet.

Does Solana use MetaMask? ›

MetaMask is built specifically for Ethereum and Ethereum Virtual Machine (EVM) compatible chains. In other words, MetaMask is built only for blockchains that can run Ethereum smart contracts. Because Solana is not EVM-compatible, MetaMask does not support the ability to hold and trade Solana-based assets.

What virtual machine does Solana use? ›

The Solana Virtual Machine runs as separate, independent instances on the blockchain's nodes (validators). Each of these validators operates an isolated SVM local environment on their own hardware, which is how they process transactions.

Does Solana use Ethereum network? ›

Unlike Polygon, which relies upon the Ethereum ecosystem, Solana is a standalone blockchain platform.

What technology does Solana use? ›

The Solana blockchain uses a proof-of-history consensus mechanism. This algorithm uses timestamps to define the next block in Solana's chain. Most early cryptocurrencies, such as Bitcoin and Litecoin, use a proof-of-work algorithm to define the blocks in their chains.

Does Tron use EVM? ›

Tron's TVM (Tron Virtual Machine) is EVM-compatible. However, there are specific differences in the TVM characteristics, particularly in its network fee structure. For example, unlike the EVM, TVM uses energy instead of gas, with TRX acting as the ecosystem gas token.

Top Articles
Latest Posts
Article information

Author: Foster Heidenreich CPA

Last Updated:

Views: 6309

Rating: 4.6 / 5 (56 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Foster Heidenreich CPA

Birthday: 1995-01-14

Address: 55021 Usha Garden, North Larisa, DE 19209

Phone: +6812240846623

Job: Corporate Healthcare Strategist

Hobby: Singing, Listening to music, Rafting, LARPing, Gardening, Quilting, Rappelling

Introduction: My name is Foster Heidenreich CPA, I am a delightful, quaint, glorious, quaint, faithful, enchanting, fine person who loves writing and wants to share my knowledge and understanding with you.