Klaytn APIs | Querying Klaytn Blockchain

Klaytn API

Klaytn is a South Korean blockchain platform that made a buzz when reports emerged that Samsung would integrate Klaytn in their flagship product, Galaxy note 10 and market them as “KlaytnPhone”. Klaytn is a service-centric blockchain platform developed by Ground X, the blockchain subsidiary of South Korea’s no one mobile platform, Kakao.

Klaytn is EVM compatible. It adopts a trust model of private consensus with the public disclosure, where a smaller group of consensus nodes (CNs) executes BFT consensus in a private network while surrounded by a larger public network of permissionless endpoint nodes (ENs) openly accessing (and where necessary, verifying) block generation results.

The image below shows the companies that run Klaytn’s consensus nodes.

Companies supporting Klaytn
Companies supporting Klaytn

In this article, we will talk about how to use Bitquery to query the Klaytn blockchain. In addition, we have enabled GraphQL APIs on Klaytn for developers and businesses to access Klaytn and BApps data through our APIs.

If you are looking for Klaytn APIs, please sign up on our Blockchain IDE and get your API keys.

Klaytn Blocks

Klaytn’s blocks are produced by consensus nodes in private; however, they are publically verifiable. Till now, the blockchain has produced more than 71623927 blocks. On average, Klaytn produces ~26 million blocks per month. If you want to know the latest Klaytn’s transactions, you can use this query.

Klaytn Transactions

One of the vital aspects of Klaytn hybrid design is that it’s built for scalability. Since its launch in July 2019, Klaytn has processed more than 262 million transactions, of which more than 18 million were processed in Sept 2021.

Use this query to get the latest Klaytn transactions.

Klaytn Transactions over time
Klaytn Transactions over time

Klaytn Gas Analytics

Klaytn is built for scalability and business use cases; therefore, the cost of transactions is very low. At the time of writing this article, the cost per transaction is around $0.00605/tx. You can check Klaytn’s average gas cost per month using this query.

Average Transaction Price on Klaytn
Average Transaction Price on Klaytn

Klaytn Transfers

Klaytn processed more than 237 million transfers since its launch, in which 34 million transfers were processed in August 2021.

A transfer is when any token or native currency get transferred. And a transaction can contain 0 to more than 1 transfers.

Klaytn has more than 5.7 million unique receivers and 2.4 million senders.

Klaytn Transfers over time
Klaytn Transfers over time

Tokens on Klaytn

At the time of writing this article, there were 2392 unique tokens on Klaytn. Using this query, you can check the complete list with some critical data points like total senders, receivers, average transfer value, etc.

Klay (the native token of Klaytn) is the most transferred currency on the Klytan blockchain, with more than 105 million transfers.

Top Tokens based on transfers on Klaytn
Top Tokens based on transfers on Klaytn

DEXs on Klaytn

More than 3800 unique traders executed 800,000 trades with a total volume of $170 million. Use this query to get the month-wise data for DEX trade count and volume.

To get the latest trades on the Klaytn blockchain, use this query.

DEX Trades on Klaytn
DEX Trades on Klaytn

Smart Contracts on Klaytn

Klaytn also saw massive growth in the smart contract calls; currently, Klaytn is executing more than 300 million calls per month. The good part is that these calls come from more than 60k smart contracts and 200K unique callers.

Smart Contract Calls Month on Month on Klaytn
Smart Contract Calls Month on Month on Klaytn

Querying Address details on Klaytn

Bitquery makes it very easy to query details for a given address such as balance, currency received and sent, transaction etc. We also enabled Money flow APIs on Klaytn, making it easy to trace any address on the blockchain.

For example, if you want to check the balance of an address, you can use the following query.

Additionally, use this query if you want to know the total currencies sent and received by a given address.

Currencies sent and received by a given address on Klaytn
Currencies sent and received by a given address on Klaytn

Tracing On Klaytn

Additionally, we have enabled our flagship product Coinpath®, the money tracking APIs on Klaytn, which helps track money on the blockchain.

For example, check this visualization and drag and drop address and change setting to get more in-depth transactions related to this address.

Money Tracking on Klaytn
Money Tracking on Klaytn

Conclusion

Klaytn is not a complete public chain. However, it has the support of big tech companies. If you are looking for Klaytn APIs, please sign up on our Blockchain IDE and get your API keys. If you are building any application related to Klaytn, we would be delighted to talk to you; you can email us at hello@bitquery.io or ping us on our Telegram channel.

About Bitquery

Bitquery is a set of software tools that parse, index, access, search, and use information across blockchain networks in a unified way. Our products are:

  • Coinpath® APIs provide blockchain money flow analysis for more than 24 blockchains. With Coinpath’s APIs, you can monitor blockchain transactions, investigate crypto crimes such as bitcoin money laundering, and create crypto forensics tools. Read this to get started with Coinpath®.
  • Digital Assets API provides index information related to all major cryptocurrencies, coins, and tokens.
  • DEX API provides real-time deposits and transactions, trades, and other related data on different DEX protocols like Uniswap, Kyber Network, Airswap, Matching Network, etc.

If you have any questions about our products, ask them on our Telegram channel or email us at hello@bitquery.io. Also, subscribe to our newsletter below, we will keep you updated with the latest in the cryptocurrency world.

Privacy Preferences
When you visit our website, it may store information through your browser from specific services, usually in form of cookies. Here you can change your privacy preferences. Please note that blocking some types of cookies may impact your experience on our website and the services we offer.
Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
blank

The Ultimate Guide to NFT Analytics

Bitquery provides NFT APIs as-a-Service with access to a wide range of data, including sales data, ownership data, and transfer data. In this article, let’s focus on a breakdown of the analytics that are possible with the Bitquery NFT APIs.

Read More »