getLedgerSupply

How to use it

// Import required libraries and modules from Tatum SDK
import { TatumSDK, AlgorandAlgod, Network } from '@tatumio/tatum';

// Initialize the Tatum SDK for Algorand
const tatum = await TatumSDK.init<AlgorandAlgod>({ network: Network.ALGORAND_ALGOD });

// Retrieve the current supply of MicroAlgos reported by the ledger
const supply = await tatum.rpc.getLedgerSupply();

// Log the current supply
console.log('Algorand Current Supply:', supply);

// Always destroy the Tatum SDK instance when done to stop any background processes
await tatum.destroy();

Overview

The getLedgerSupply method allows you to retrieve the current supply of MicroAlgos reported by the ledger.

Example Use Cases

  1. Supply Information: Developers can use this method to retrieve the current supply of MicroAlgos in the Algorand system.

Request Parameters

The getLedgerSupply method does not require any parameters.

Return Object

The method returns an object representing the current supply of MicroAlgos in the Algorand system.

Please note that the structure of the returned object may change in different Algorand RPC versions.

Last updated

ยฉ Tatum Technology, LLC