
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.

Subscribe to Chainbase

Subscribe to Chainbase
Share Dialog
Share Dialog


<100 subscribers
<100 subscribers
The Author: Pyours
Stargate, an emerging name in the finance world, especially when it comes to cross-chain data. In this tutorial, we'll dive deep into the world of Stargate Finance, exploring its intricate features, functionalities, and the invaluable dataset it provides through Chainbase. This DeFi dataset, in particular, empowers us to fetch the trading data seamlessly.
For all the blockchain enthusiasts and developers out there, this guide will be your beacon in navigating and understanding Stargate's data via Chainbase. Are you ready? Let's embark on this enlightening journey!
A free account at Chainbase with an API key.
An IDE. Our examples are shown in JavaScript, you can use VS Code as your IDE for example.
By providing the account ID, you can retrieve details about transfers, deposits, withdraws, and messages associated with that account.
Example GraphQL Query:
query GetAccountInfo($accountId: ID!) {
accounts(where: {id: $accountId}) {
id
transfers {
id
amountUSD
crossTransactionID
crosschainToken {
chainID
network
}
fromChainID
toChainID
type
}
deposits {
blockNumber
chainID
amountUSD
timestamp
}
withdraws {
id
amountUSD
chainID
}
withdrawCount
messages {
id
crossTransactionID
fromChainID
toChainID
}
messageSentCount
messageReceivedCount
}
}
Using GraphQL, you can retrieve detailed information about the protocols available on Stargate Finance. This includes cumulative protocol side revenue, cumulative supply side revenue, total revenue, and daily usage metrics.
Example GraphQL Query:
query protocolsInfo {
protocols(where: {id: "0x808d7c71ad2ba3fa531b068a2417c63106bc0949"}) {
id
cumulativeProtocolSideRevenueUSD
cumulativeSupplySideRevenueUSD
cumulativeTotalRevenueUSD
dailyUsageMetrics(first: 5, orderBy: timestamp) {
cumulativeLiquidityDepositCount
cumulativeTransactionCount
}
totalValueLockedUSD
type
... on BridgeProtocol {
id
name
}
}
}
Tokens play a crucial role in the DeFi ecosystem, representing various assets and enabling seamless transactions and interactions within protocols.
Chainbase dataset allows users to explore information about reward tokens and regular tokens. This includes token symbols and their last prices in USD.
Example GraphQL Query:
query TokenInfo {
rewardTokens {
type
token {
symbol
}
}
tokens {
symbol
lastPriceUSD
}
}
Liquidity pools are at the heart of decentralized exchanges, providing liquidity for trading and earning rewards for users.
Our dataset enables users to access data about liquidity events, including liquidity deposits and withdrawals. This information is crucial for understanding pool dynamics and user participation.
Example GraphQL Query:
query liquidityInfo {
events(first: 5, orderBy: timestamp, orderDirection: desc) {
hash
from
to
timestamp
... on LiquidityDeposit {
id
amountUSD
blockNumber
chainID
}
... on LiquidityWithdraw {
id
amountUSD
blockNumber
chainID
}
protocol {
netVolumeUSD
}
}
}
By providing the input token symbol, users can obtain detailed data about specific liquidity pools, including their creation timestamp, input and output tokens, and total value locked.
Example GraphQL Query:
query GetInfo($inputToken: String!) {
pools(where: {inputToken_: {symbol:$inputToken}}) {
createdBlockNumber
createdTimestamp
inputToken {
lastPriceUSD
name
symbol
}
inputTokenBalance
outputToken {
lastPriceUSD
name
symbol
}
outputTokenPriceUSD
totalValueLockedUSD
}
}
# eg.
{
"inputToken":"S*USDC"
}
In this illuminating voyage through Stargate Finance using Chainbase, we've unearthed how to query account info, protocol details, token specifics, and liquidity pool intricacies. Chainbase, with its powerful dataset, is the bridge connecting developers to the expansive universe of on-chain data.
What is the primary purpose of Stargate Finance?
It's designed for cross-chain data transactions in the defi realm.
Is Chainbase free to use?
Yes, you can sign up for a free account.
How does GraphQL help in querying Stargate's data?
GraphQL facilitates structured data fetching, enabling users to specify what they need, thus reducing redundancy and increasing efficiency.
What's the significance of liquidity pools in decentralized exchanges?
Liquidity pools are fundamental, ensuring smooth trading and offering rewards to users providing liquidity.
Can I access real-time data using Chainbase?
Yes, Chainbase provides enriched on-chain data, and while it's comprehensive, always consult our documentation for real-time capabilities.
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: How to Get Stargate Cross Chain Data
The Author: Pyours
Stargate, an emerging name in the finance world, especially when it comes to cross-chain data. In this tutorial, we'll dive deep into the world of Stargate Finance, exploring its intricate features, functionalities, and the invaluable dataset it provides through Chainbase. This DeFi dataset, in particular, empowers us to fetch the trading data seamlessly.
For all the blockchain enthusiasts and developers out there, this guide will be your beacon in navigating and understanding Stargate's data via Chainbase. Are you ready? Let's embark on this enlightening journey!
A free account at Chainbase with an API key.
An IDE. Our examples are shown in JavaScript, you can use VS Code as your IDE for example.
By providing the account ID, you can retrieve details about transfers, deposits, withdraws, and messages associated with that account.
Example GraphQL Query:
query GetAccountInfo($accountId: ID!) {
accounts(where: {id: $accountId}) {
id
transfers {
id
amountUSD
crossTransactionID
crosschainToken {
chainID
network
}
fromChainID
toChainID
type
}
deposits {
blockNumber
chainID
amountUSD
timestamp
}
withdraws {
id
amountUSD
chainID
}
withdrawCount
messages {
id
crossTransactionID
fromChainID
toChainID
}
messageSentCount
messageReceivedCount
}
}
Using GraphQL, you can retrieve detailed information about the protocols available on Stargate Finance. This includes cumulative protocol side revenue, cumulative supply side revenue, total revenue, and daily usage metrics.
Example GraphQL Query:
query protocolsInfo {
protocols(where: {id: "0x808d7c71ad2ba3fa531b068a2417c63106bc0949"}) {
id
cumulativeProtocolSideRevenueUSD
cumulativeSupplySideRevenueUSD
cumulativeTotalRevenueUSD
dailyUsageMetrics(first: 5, orderBy: timestamp) {
cumulativeLiquidityDepositCount
cumulativeTransactionCount
}
totalValueLockedUSD
type
... on BridgeProtocol {
id
name
}
}
}
Tokens play a crucial role in the DeFi ecosystem, representing various assets and enabling seamless transactions and interactions within protocols.
Chainbase dataset allows users to explore information about reward tokens and regular tokens. This includes token symbols and their last prices in USD.
Example GraphQL Query:
query TokenInfo {
rewardTokens {
type
token {
symbol
}
}
tokens {
symbol
lastPriceUSD
}
}
Liquidity pools are at the heart of decentralized exchanges, providing liquidity for trading and earning rewards for users.
Our dataset enables users to access data about liquidity events, including liquidity deposits and withdrawals. This information is crucial for understanding pool dynamics and user participation.
Example GraphQL Query:
query liquidityInfo {
events(first: 5, orderBy: timestamp, orderDirection: desc) {
hash
from
to
timestamp
... on LiquidityDeposit {
id
amountUSD
blockNumber
chainID
}
... on LiquidityWithdraw {
id
amountUSD
blockNumber
chainID
}
protocol {
netVolumeUSD
}
}
}
By providing the input token symbol, users can obtain detailed data about specific liquidity pools, including their creation timestamp, input and output tokens, and total value locked.
Example GraphQL Query:
query GetInfo($inputToken: String!) {
pools(where: {inputToken_: {symbol:$inputToken}}) {
createdBlockNumber
createdTimestamp
inputToken {
lastPriceUSD
name
symbol
}
inputTokenBalance
outputToken {
lastPriceUSD
name
symbol
}
outputTokenPriceUSD
totalValueLockedUSD
}
}
# eg.
{
"inputToken":"S*USDC"
}
In this illuminating voyage through Stargate Finance using Chainbase, we've unearthed how to query account info, protocol details, token specifics, and liquidity pool intricacies. Chainbase, with its powerful dataset, is the bridge connecting developers to the expansive universe of on-chain data.
What is the primary purpose of Stargate Finance?
It's designed for cross-chain data transactions in the defi realm.
Is Chainbase free to use?
Yes, you can sign up for a free account.
How does GraphQL help in querying Stargate's data?
GraphQL facilitates structured data fetching, enabling users to specify what they need, thus reducing redundancy and increasing efficiency.
What's the significance of liquidity pools in decentralized exchanges?
Liquidity pools are fundamental, ensuring smooth trading and offering rewards to users providing liquidity.
Can I access real-time data using Chainbase?
Yes, Chainbase provides enriched on-chain data, and while it's comprehensive, always consult our documentation for real-time capabilities.
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: How to Get Stargate Cross Chain Data
No activity yet