
How to Get the Holders of an ERC20 Token
IntroductionIn the world of cryptocurrency, knowing the holders of a particular token can provide valuable insights and opportunities for collaboration. Chainbase, a leading platform, offers a powerful API called getTokenHolders that allows you to retrieve a list of addresses for all the holders of a specific ERC20 token. This tutorial will guide you through the process of using Chainbase API to get the holders of a cryptocurrency deployed on various chains. By leveraging this information, yo...

How to Determine the Type of an EVM Contract
In common on-chain data parsing, there is often a large demand for determining the type of contract. This article will judge on relevant standards and engineering practices to determine whether the contract belongs to ERC20 / ERC721 / ERC1155. For more use cases, you can refer to the developer documentation of Chainbase, or ask the original author through Discord. We are happy to discuss issues related to Web3 infra, Data SDK, Chainbase APIs, etc.Rules to determine different contractsWith the...

How to Register a Chainbase Account?
To get started, go to the Chainbase official website.websiteClick on the dashboard to register a new account.loginEnter your email and password.Untitled.pngNext, create a new project in the console to obtain an API key. Now it's time to start your Web3 journey!
All-in-one web3 data infrastructure for indexing, transforming, and utilization of on-chain data at scale.



How to Get the Holders of an ERC20 Token
IntroductionIn the world of cryptocurrency, knowing the holders of a particular token can provide valuable insights and opportunities for collaboration. Chainbase, a leading platform, offers a powerful API called getTokenHolders that allows you to retrieve a list of addresses for all the holders of a specific ERC20 token. This tutorial will guide you through the process of using Chainbase API to get the holders of a cryptocurrency deployed on various chains. By leveraging this information, yo...

How to Determine the Type of an EVM Contract
In common on-chain data parsing, there is often a large demand for determining the type of contract. This article will judge on relevant standards and engineering practices to determine whether the contract belongs to ERC20 / ERC721 / ERC1155. For more use cases, you can refer to the developer documentation of Chainbase, or ask the original author through Discord. We are happy to discuss issues related to Web3 infra, Data SDK, Chainbase APIs, etc.Rules to determine different contractsWith the...

How to Register a Chainbase Account?
To get started, go to the Chainbase official website.websiteClick on the dashboard to register a new account.loginEnter your email and password.Untitled.pngNext, create a new project in the console to obtain an API key. Now it's time to start your Web3 journey!
All-in-one web3 data infrastructure for indexing, transforming, and utilization of on-chain data at scale.
Share Dialog
Share Dialog

Subscribe to Chainbase

Subscribe to Chainbase
<100 subscribers
<100 subscribers
The Author: mumu
Sui introduces a unique approach where all contracts, NFTs (Non-Fungible Tokens), and Coins can be perceived as Objects. This innovative storage structure operates on the basis of Objects, forming the foundation of Sui's functionalities. In this article, we will explore the three core aspects related to Objects in Sui: NFT Collections, Token Values, and Package Contracts. Discover how Sui's Object-based system revolutionizes the blockchain landscape.
NFTs are unique digital assets that represent ownership of a specific item, artwork, or collectable on the blockchain. In Sui, NFTs are treated as Objects, and their control is governed by a specific contract package. To find the NFT control contract package, we need to identify the package responsible for the minting functionality of the NFTs.
To locate the NFT control contract package, we first need to find the package ID (object ID) associated with the NFT. For example, let's say we want to find the bulk shark NFT package ID with the object ID
To locate the NFT control contract package, we first need to find the package ID (object ID) associated with the NFT. For example, let's say we want to find the bulk shark NFT package ID with the object ID
0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1.
Once we have the package ID, we can query all the move_calls (transactions) generated within that package:
select * from sui.move_calls where move_package = '0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1';
Alternatively, we can find all the NFT objects within the package using the corresponding NFT object type:
select * from sui.objects
where object_type = '0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1::suifrens::SuiFren<0x8894fa02fc6f36cbc485ae9145d05f247a78e220814fb8419ab261bd81f08f32::bullshark::Bullshark>';
Sui's Coins are also treated as Objects, and each CoinType generates a unique Object ID. As a result, calculating balances requires grouping the same CoinType and Account Address.
To query token balances, we need to group the same CoinType and Account Address together and calculate their total balance. For instance, the following SQL query retrieves the top 100 balances for the Sui Coin (CoinType: 0x2::coin::Coin<0x2::sui::SUI>):
select sum(storage_rebate) as balance, owner_address from sui.objects where object_type = '0x2::coin::Coin<0x2::sui::SUI>' group by owner_address, storage_rebate order by balance desc limit 100;
Top Contracts are determined by grouping packages based on the number of interactions they have.
To identify the top contracts, we group the packages by the number of move_calls (transactions) they generate. The following SQL query provides information on the top 100 contracts:
select count(1) as score, move_package from sui.move_calls group by move_package order by score desc limit 100;
Objects in Sui refer to a unique approach where all contracts, NFTs, and Coins are considered individual Objects. This Object-based storage structure forms the core of Sui's operations.
To locate the control contract package for NFTs, you need to identify the specific NFT type, and the package ID can be found as the first hexadecimal prefix in the NFT type. For instance, if the NFT object's type is 0x5325…17a2, and it belongs to the type 0xee49…e1a1::suifrens::SuiFren<0x8894…8f32::bullshark::Bullshark>, then the collection's package ID would be 0xee49…e1a1.
Yes, you can query token balances for specific Coins in Sui. By grouping the same CoinType and Account Address, you can calculate the total balance for each toke
Sui's Object-based storage system is unique as it treats all contracts, NFTs, and Coins as Objects. This innovative approach streamlines the storage structure and enhances overall blockchain functionalities.
Yes, all NFTs are stored as Objects in Sui. Each NFT has a specific object type, making it easy to identify and manage different NFT collections.
Sui's Object-based storage system redefines the way contracts, NFTs, and Coins are managed on the blockchain. By considering them as individual Objects, Sui offers a streamlined and efficient approach to handling digital assets. The concepts of NFT Collections, Token Values, and Package Contracts showcase the power and versatility of Sui's”
Chainbase is an all-in-one data infrastructure for Web3 that allows you to index, transform, and use on-chain data at scale. By leveraging enriched on-chain data and streaming computing technologies across one data infrastructure, Chainbase automates the indexing and querying of blockchain data, enabling developers to accomplish more with less effort.
Visit our website chainbase.com Sign up for a free account, and Check out our documentation.
Website|Blog|Twitter|Discord|Link3
The Original Link:
https://chainbase.com/blog/article/exploration-of-sui-data-application-scenarios
The Author: mumu
Sui introduces a unique approach where all contracts, NFTs (Non-Fungible Tokens), and Coins can be perceived as Objects. This innovative storage structure operates on the basis of Objects, forming the foundation of Sui's functionalities. In this article, we will explore the three core aspects related to Objects in Sui: NFT Collections, Token Values, and Package Contracts. Discover how Sui's Object-based system revolutionizes the blockchain landscape.
NFTs are unique digital assets that represent ownership of a specific item, artwork, or collectable on the blockchain. In Sui, NFTs are treated as Objects, and their control is governed by a specific contract package. To find the NFT control contract package, we need to identify the package responsible for the minting functionality of the NFTs.
To locate the NFT control contract package, we first need to find the package ID (object ID) associated with the NFT. For example, let's say we want to find the bulk shark NFT package ID with the object ID
To locate the NFT control contract package, we first need to find the package ID (object ID) associated with the NFT. For example, let's say we want to find the bulk shark NFT package ID with the object ID
0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1.
Once we have the package ID, we can query all the move_calls (transactions) generated within that package:
select * from sui.move_calls where move_package = '0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1';
Alternatively, we can find all the NFT objects within the package using the corresponding NFT object type:
select * from sui.objects
where object_type = '0xee496a0cc04d06a345982ba6697c90c619020de9e274408c7819f787ff66e1a1::suifrens::SuiFren<0x8894fa02fc6f36cbc485ae9145d05f247a78e220814fb8419ab261bd81f08f32::bullshark::Bullshark>';
Sui's Coins are also treated as Objects, and each CoinType generates a unique Object ID. As a result, calculating balances requires grouping the same CoinType and Account Address.
To query token balances, we need to group the same CoinType and Account Address together and calculate their total balance. For instance, the following SQL query retrieves the top 100 balances for the Sui Coin (CoinType: 0x2::coin::Coin<0x2::sui::SUI>):
select sum(storage_rebate) as balance, owner_address from sui.objects where object_type = '0x2::coin::Coin<0x2::sui::SUI>' group by owner_address, storage_rebate order by balance desc limit 100;
Top Contracts are determined by grouping packages based on the number of interactions they have.
To identify the top contracts, we group the packages by the number of move_calls (transactions) they generate. The following SQL query provides information on the top 100 contracts:
select count(1) as score, move_package from sui.move_calls group by move_package order by score desc limit 100;
Objects in Sui refer to a unique approach where all contracts, NFTs, and Coins are considered individual Objects. This Object-based storage structure forms the core of Sui's operations.
To locate the control contract package for NFTs, you need to identify the specific NFT type, and the package ID can be found as the first hexadecimal prefix in the NFT type. For instance, if the NFT object's type is 0x5325…17a2, and it belongs to the type 0xee49…e1a1::suifrens::SuiFren<0x8894…8f32::bullshark::Bullshark>, then the collection's package ID would be 0xee49…e1a1.
Yes, you can query token balances for specific Coins in Sui. By grouping the same CoinType and Account Address, you can calculate the total balance for each toke
Sui's Object-based storage system is unique as it treats all contracts, NFTs, and Coins as Objects. This innovative approach streamlines the storage structure and enhances overall blockchain functionalities.
Yes, all NFTs are stored as Objects in Sui. Each NFT has a specific object type, making it easy to identify and manage different NFT collections.
Sui's Object-based storage system redefines the way contracts, NFTs, and Coins are managed on the blockchain. By considering them as individual Objects, Sui offers a streamlined and efficient approach to handling digital assets. The concepts of NFT Collections, Token Values, and Package Contracts showcase the power and versatility of Sui's”
Chainbase is an all-in-one data infrastructure for Web3 that allows you to index, transform, and use on-chain data at scale. By leveraging enriched on-chain data and streaming computing technologies across one data infrastructure, Chainbase automates the indexing and querying of blockchain data, enabling developers to accomplish more with less effort.
Visit our website chainbase.com Sign up for a free account, and Check out our documentation.
Website|Blog|Twitter|Discord|Link3
The Original Link:
https://chainbase.com/blog/article/exploration-of-sui-data-application-scenarios
No activity yet