Skip to content

Ledger Supply

GET /v2/ledger/supply

Get the current supply reported by the ledger.

Packages

Node.js

Install

Terminal window
npm install algosdk --save

Usage

import { Algodv2 } from "algosdk";
const client = new Algodv2( "", "https://testnet-api.algonode.cloud", 443 );
const result = await client.supply().do();

React

Install

Terminal window
npm install @awesome-algorand/react-query @txnlab/use-wallet-react @tanstack/react-query algosdk --save

Usage

import { useSupply } from '@awesome-algorand/react-query';
export function SupplyViewer() {
const query = useSupply();
}

Svelte [WIP]

Coming Soon!

Solid [WIP]

Coming Soon!

Vue [WIP]

Coming Soon!

Angular [WIP]

Coming Soon!