Skip to content

M Daily yields

This query will return the daily accrued yield snaphots of the given address for M Token. Starting at from until the current time.

query MHoldersSnapshotsQuery($address: String!, $from: String) {
  MHolderSnapshots(address: $address, from: $from) {
    balance
    accruedYield
    timestamp
    principal
  }
}

One has to provide the right variables. Let's see examples below:

Example: wM snapshots

$M (wrapped) is an extension of $M.

Accrued yield snapshots for 0x437cc33344a0B27A429f795ff6B469C72698B291 since April 1st, 2025.

variables:

{
  "address": "0x437cc33344a0B27A429f795ff6B469C72698B291",
  "from": "1 April 2025"
}

When from is not specified, it defaults to the last 30 days.

Here is a screenshot of how the playground UI looks like:

$M Holders Query

Example: Noble Dollar snapshots

Noble Dollar is an extension of $M.

To get Noble Dollar historical balance and yield snapshot use the query from above with the following variables:

{
  "address": "0x83Ae82Bd4054e815fB7B189C39D9CE670369ea16",
  "from": "1 April 2025"
}

Response example:

{
  "data": {
    "MHolderSnapshots": [
      {
        "timestamp": "1717640316",
        "balance": "966636",
        "accruedYield": "67"
      },
      {
        "timestamp": "1717726716",
        "balance": "966769",
        "accruedYield": "133"
      },
      {
        "timestamp": "1717813116",
        "balance": "966901",
        "accruedYield": "132"
      }
  }
}