PROTOCOL API
Network Supply
Query the current network supply and reserves of the M0 Protocol.
Use this query to get the current network supply and the reserves (collateral) of the M0 Protocol.
query M0NetworkSupplyQuery {
supply: totalOwedMs(orderBy: blockTimestamp, orderDirection: desc, first: 1) {
amount
lastUpdate: blockTimestamp
}
reserves: minterGateway_totalCollateralSnapshots(
orderBy: timestamp
orderDirection: desc
first: 1
) {
amount: value
lastUpdate: timestamp
}
}
Example output:
{
"data": {
"supply": [
{
"amount": "261403752633708",
"lastUpdate": "1787231531"
}
],
"reserves": [
{
"amount": "266219796632317",
"lastUpdate": "1787223731"
}
]
}
}
Issuers and reserves
For detailed breakdown of reserves by issuer, you can use the following query:
query M0ReservesByMinterQuery {
issuers: minterGateway_minters {
address
isActive
activationTimestamp
collateral
minted
burned
}
}