Documentation Index
Fetch the complete documentation index at: https://docs.spark.money/llms.txt
Use this file to discover all available pages before exploring further.
Gets the token distribution information for the token associated with this IssuerSparkWallet.
This feature is currently under development and will be available in a future release of Spark.
Method Signature
interface TokenDistribution {
totalCirculatingSupply: bigint;
totalIssued: bigint;
totalBurned: bigint;
numHoldingAddress: number;
numConfirmedTransactions: bigint;
}
async function getIssuerTokenDistribution(): Promise<TokenDistribution>;
Returns
Total circulating supply of the token
Number of addresses holding the token
Number of confirmed transactions
Example
const distribution = await issuerWallet.getIssuerTokenDistribution();
console.log("Circulating supply:", distribution.totalCirculatingSupply);
console.log("Total issued:", distribution.totalIssued);
console.log("Total burned:", distribution.totalBurned);
console.log("Holding addresses:", distribution.numHoldingAddress);
console.log("Confirmed transactions:", distribution.numConfirmedTransactions);