Which api interface I should use for querying Total Pledge Space

Issue Report

Hey guys . Does any one know which api interface I should use for querying Total Pledge Space

Environment

gemini 3H

Problem

This is not a problem. I need an API interface to query Total Pledge Space. Because I found that this data is fluctuating. So I want to record it myself. So I want to query this data from the command line.

[Paste any errors or relevant logs here]

There is a constant in pallet-transaction-fees: Polkadot/Substrate Portal