[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"navigation":3,"\u002Fapi-reference\u002Frecipes\u002Ftoken-overview":260,"\u002Fapi-reference\u002Frecipes\u002Ftoken-overview-surround":555},[4,22,105,148,177,186,243],{"title":5,"path":6,"stem":7,"children":8,"page":21},"Agents","\u002Fagents","agents",[9,13,17],{"title":10,"path":11,"stem":12},"LLMs.txt","\u002Fagents\u002Fllms-txt","agents\u002Fllms-txt",{"title":14,"path":15,"stem":16},"MCP Server","\u002Fagents\u002Fmcp-server","agents\u002Fmcp-server",{"title":18,"path":19,"stem":20},"Skills","\u002Fagents\u002Fskills","agents\u002Fskills",false,{"title":23,"path":24,"stem":25,"children":26,"page":21},"Api Reference","\u002Fapi-reference","api-reference",[27,31,35,68],{"title":28,"path":29,"stem":30},"Authentication","\u002Fapi-reference\u002Fauthentication","api-reference\u002Fauthentication",{"title":32,"path":33,"stem":34},"API Reference","\u002Fapi-reference\u002Fintroduction","api-reference\u002Fintroduction",{"title":36,"path":37,"stem":38,"children":39,"page":21},"Orchestration","\u002Fapi-reference\u002Forchestration","api-reference\u002Forchestration",[40,44,48,52,56,60,64],{"title":41,"path":42,"stem":43},"POST \u002Fcancel-order","\u002Fapi-reference\u002Forchestration\u002Fcancel-order","api-reference\u002Forchestration\u002Fcancel-order",{"title":45,"path":46,"stem":47},"GET \u002Forder-status\u002F{orderId}","\u002Fapi-reference\u002Forchestration\u002Forder-status","api-reference\u002Forchestration\u002Forder-status",{"title":49,"path":50,"stem":51},"GET \u002Forders","\u002Fapi-reference\u002Forchestration\u002Forders","api-reference\u002Forchestration\u002Forders",{"title":53,"path":54,"stem":55},"Orchestration API","\u002Fapi-reference\u002Forchestration\u002Foverview","api-reference\u002Forchestration\u002Foverview",{"title":57,"path":58,"stem":59},"POST \u002Fquote","\u002Fapi-reference\u002Forchestration\u002Fquote","api-reference\u002Forchestration\u002Fquote",{"title":61,"path":62,"stem":63},"GET \u002Fsupported-assets","\u002Fapi-reference\u002Forchestration\u002Fsupported-assets","api-reference\u002Forchestration\u002Fsupported-assets",{"title":65,"path":66,"stem":67},"TypeScript Type Generation","\u002Fapi-reference\u002Forchestration\u002Ftype-generation","api-reference\u002Forchestration\u002Ftype-generation",{"title":69,"path":70,"stem":71,"children":72,"page":21},"Recipes","\u002Fapi-reference\u002Frecipes","api-reference\u002Frecipes",[73,77,81,85,89,93,97,101],{"title":74,"path":75,"stem":76},"Collateral Composition","\u002Fapi-reference\u002Frecipes\u002Fcollateral-composition","api-reference\u002Frecipes\u002Fcollateral-composition",{"title":78,"path":79,"stem":80},"Daily Yields","\u002Fapi-reference\u002Frecipes\u002Fdaily-yields","api-reference\u002Frecipes\u002Fdaily-yields",{"title":82,"path":83,"stem":84},"Earner Rate History","\u002Fapi-reference\u002Frecipes\u002Fearner-rate-history","api-reference\u002Frecipes\u002Fearner-rate-history",{"title":86,"path":87,"stem":88},"Minter Daily Expenses","\u002Fapi-reference\u002Frecipes\u002Fminter-daily-expenses","api-reference\u002Frecipes\u002Fminter-daily-expenses",{"title":90,"path":91,"stem":92},"Network Supply","\u002Fapi-reference\u002Frecipes\u002Fnetwork-supply","api-reference\u002Frecipes\u002Fnetwork-supply",{"title":94,"path":95,"stem":96},"Protocol Configuration","\u002Fapi-reference\u002Frecipes\u002Fprotocol-config","api-reference\u002Frecipes\u002Fprotocol-config",{"title":98,"path":99,"stem":100},"Token Holders","\u002Fapi-reference\u002Frecipes\u002Ftoken-holders","api-reference\u002Frecipes\u002Ftoken-holders",{"title":102,"path":103,"stem":104},"Token Overview","\u002Fapi-reference\u002Frecipes\u002Ftoken-overview","api-reference\u002Frecipes\u002Ftoken-overview",{"title":106,"path":107,"stem":108,"children":109,"page":21},"Build","\u002Fbuild","build",[110,114,118,122,126,130,134,138,142,145],{"title":111,"path":112,"stem":113},"Integrating with the M0 Portals","\u002Fbuild\u002Fbridging-developer","build\u002Fbridging-developer",{"title":115,"path":116,"stem":117},"Bridging M And wM Tokens","\u002Fbuild\u002Fbridging-user","build\u002Fbridging-user",{"title":119,"path":120,"stem":121},"Stablecoin Extension Templates","\u002Fbuild\u002Fchoosing-your-model","build\u002Fchoosing-your-model",{"title":123,"path":124,"stem":125},"How to Design Your Stablecoin","\u002Fbuild\u002Foverview","build\u002Foverview",{"title":127,"path":128,"stem":129},"Implementation Guide: NoYield","\u002Fbuild\u002Fsvm-noyield-guide","build\u002Fsvm-noyield-guide",{"title":131,"path":132,"stem":133},"Getting started","\u002Fbuild\u002Fsvm-noyield-guide-overview","build\u002Fsvm-noyield-guide-overview",{"title":135,"path":136,"stem":137},"Implementation Guide: MYieldToOne (Onshore)","\u002Fbuild\u002Ftreasury-guide","build\u002Ftreasury-guide",{"title":139,"path":140,"stem":141},"Implementation Guide: JMI (Offshore)","\u002Fbuild\u002Ftreasury-jmi-guide","build\u002Ftreasury-jmi-guide",{"title":131,"path":143,"stem":144},"\u002Fbuild\u002Ftreasury-jmi-overview","build\u002Ftreasury-jmi-overview",{"title":131,"path":146,"stem":147},"\u002Fbuild\u002Ftreasury-model","build\u002Ftreasury-model",{"title":149,"path":150,"stem":151,"children":152,"page":21},"Get Started","\u002Fget-started","get-started",[153,157,161,165,169,173],{"title":154,"path":155,"stem":156},"Accessing Liquidity","\u002Fget-started\u002Faccessing-liquidity","get-started\u002Faccessing-liquidity",{"title":158,"path":159,"stem":160},"Cross Chain Interoperability","\u002Fget-started\u002Fcross-chain","get-started\u002Fcross-chain",{"title":162,"path":163,"stem":164},"Architecture Overview","\u002Fget-started\u002Fhow-it-works","get-started\u002Fhow-it-works",{"title":166,"path":167,"stem":168},"Overview","\u002Fget-started\u002Foverview","get-started\u002Foverview",{"title":170,"path":171,"stem":172},"Platform Mechanics & Reward Programmability","\u002Fget-started\u002Fprotocol-mechanics","get-started\u002Fprotocol-mechanics",{"title":174,"path":175,"stem":176},"Stablecoin Features","\u002Fget-started\u002Fstablecoin-features","get-started\u002Fstablecoin-features",{"title":178,"path":179,"stem":180,"children":181,"page":21},"Issuers","\u002Fissuers","issuers",[182],{"title":183,"path":184,"stem":185},"Issue Your Stablecoin","\u002Fissuers\u002Foverview","issuers\u002Foverview",{"title":187,"path":188,"stem":189,"children":190,"page":21},"Protocol","\u002Fprotocol","protocol",[191,195,199,203,207,211,215,219,223,227,231,235,239],{"title":192,"path":193,"stem":194},"Distribution Vault","\u002Fprotocol\u002Fdistribution-vault","protocol\u002Fdistribution-vault",{"title":196,"path":197,"stem":198},"M0 Extensions","\u002Fprotocol\u002Fextensions","protocol\u002Fextensions",{"title":200,"path":201,"stem":202},"Limit Order Protocol","\u002Fprotocol\u002Flimit-order-protocol","protocol\u002Flimit-order-protocol",{"title":204,"path":205,"stem":206},"M0 Portals","\u002Fprotocol\u002Fm-portals","protocol\u002Fm-portals",{"title":208,"path":209,"stem":210},"M Token","\u002Fprotocol\u002Fm-token","protocol\u002Fm-token",{"title":212,"path":213,"stem":214},"M Token Specification","\u002Fprotocol\u002Fm-token-spec","protocol\u002Fm-token-spec",{"title":216,"path":217,"stem":218},"Minting & Burning (MinterGateway)","\u002Fprotocol\u002Fminting-burning","protocol\u002Fminting-burning",{"title":220,"path":221,"stem":222},"Portal V2","\u002Fprotocol\u002Fportal-v2","protocol\u002Fportal-v2",{"title":224,"path":225,"stem":226},"Rate Models & Yield","\u002Fprotocol\u002Frate-models","protocol\u002Frate-models",{"title":228,"path":229,"stem":230},"Roles","\u002Fprotocol\u002Froles","protocol\u002Froles",{"title":232,"path":233,"stem":234},"M0 On Solana","\u002Fprotocol\u002Fsolana","protocol\u002Fsolana",{"title":236,"path":237,"stem":238},"Wrapped M (wM)","\u002Fprotocol\u002Fwrapped-m","protocol\u002Fwrapped-m",{"title":240,"path":241,"stem":242},"Wrapped M Specification","\u002Fprotocol\u002Fwrapped-m-spec","protocol\u002Fwrapped-m-spec",{"title":244,"path":245,"stem":246,"children":247,"page":21},"Resources","\u002Fresources","resources",[248,252,256],{"title":249,"path":250,"stem":251},"Deployments","\u002Fresources\u002Faddresses","resources\u002Faddresses",{"title":253,"path":254,"stem":255},"Audits","\u002Fresources\u002Faudits","resources\u002Faudits",{"title":257,"path":258,"stem":259},"Glossary","\u002Fresources\u002Fglossary","resources\u002Fglossary",{"id":261,"title":102,"body":262,"description":548,"extension":549,"links":550,"meta":551,"navigation":552,"path":103,"seo":553,"stem":104,"__hash__":554},"docs\u002Fapi-reference\u002Frecipes\u002Ftoken-overview.md",{"type":263,"value":264,"toc":543},"minimark",[265,269,292,297,304,410,413,424,430,469,473,476,480,483,530,533,539],[266,267,268],"p",{},"This guide explains how to retrieve token data for M0 protocol tokens. The API provides metadata, holders, and supply information for multiple tokens including:",[270,271,272,282,287],"ul",{},[273,274,275],"li",{},[276,277,278],"strong",{},[279,280,281],"code",{},"$M",[273,283,284],{},[276,285,286],{},"POWER",[273,288,289],{},[276,290,291],{},"ZERO",[293,294,296],"h2",{"id":295},"query-multiple-tokens","Query Multiple Tokens",[266,298,299,300,303],{},"Use the ",[279,301,302],{},"tokens"," query to retrieve metadata, supply data, and holder information for all tokens:",[305,306,311],"pre",{"className":307,"code":308,"language":309,"meta":310,"style":310},"language-graphql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","query TokensOverview {\n  tokens {\n    id\n    name\n    symbol\n    decimals\n    totalSupplys(first: 2, orderBy: blockTimestamp, orderDirection: desc) {\n      value\n      blockTimestamp\n    }\n    holders(first: 10, orderBy: balance, orderDirection: desc) {\n      address\n      balance\n    }\n  }\n}\n","graphql","",[279,312,313,321,327,333,339,345,351,357,363,369,375,381,387,393,398,404],{"__ignoreMap":310},[314,315,318],"span",{"class":316,"line":317},"line",1,[314,319,320],{},"query TokensOverview {\n",[314,322,324],{"class":316,"line":323},2,[314,325,326],{},"  tokens {\n",[314,328,330],{"class":316,"line":329},3,[314,331,332],{},"    id\n",[314,334,336],{"class":316,"line":335},4,[314,337,338],{},"    name\n",[314,340,342],{"class":316,"line":341},5,[314,343,344],{},"    symbol\n",[314,346,348],{"class":316,"line":347},6,[314,349,350],{},"    decimals\n",[314,352,354],{"class":316,"line":353},7,[314,355,356],{},"    totalSupplys(first: 2, orderBy: blockTimestamp, orderDirection: desc) {\n",[314,358,360],{"class":316,"line":359},8,[314,361,362],{},"      value\n",[314,364,366],{"class":316,"line":365},9,[314,367,368],{},"      blockTimestamp\n",[314,370,372],{"class":316,"line":371},10,[314,373,374],{},"    }\n",[314,376,378],{"class":316,"line":377},11,[314,379,380],{},"    holders(first: 10, orderBy: balance, orderDirection: desc) {\n",[314,382,384],{"class":316,"line":383},12,[314,385,386],{},"      address\n",[314,388,390],{"class":316,"line":389},13,[314,391,392],{},"      balance\n",[314,394,396],{"class":316,"line":395},14,[314,397,374],{},[314,399,401],{"class":316,"line":400},15,[314,402,403],{},"  }\n",[314,405,407],{"class":316,"line":406},16,[314,408,409],{},"}\n",[266,411,412],{},"This query returns:",[270,414,415,418,421],{},[273,416,417],{},"Token metadata (name, symbol, decimals, contract address)",[273,419,420],{},"Historical total supply snapshots",[273,422,423],{},"Top token holders and their balances",[266,425,299,426,429],{},[279,427,428],{},"token"," query to retrieve data for a specific token:",[305,431,433],{"className":307,"code":432,"language":309,"meta":310,"style":310},"query TokenOverview($id: String!) {\n  token(id: $id) {\n    id\n    name\n    symbol\n    decimals\n  }\n}\n",[279,434,435,440,445,449,453,457,461,465],{"__ignoreMap":310},[314,436,437],{"class":316,"line":317},[314,438,439],{},"query TokenOverview($id: String!) {\n",[314,441,442],{"class":316,"line":323},[314,443,444],{},"  token(id: $id) {\n",[314,446,447],{"class":316,"line":329},[314,448,332],{},[314,450,451],{"class":316,"line":335},[314,452,338],{},[314,454,455],{"class":316,"line":341},[314,456,344],{},[314,458,459],{"class":316,"line":347},[314,460,350],{},[314,462,463],{"class":316,"line":353},[314,464,403],{},[314,466,467],{"class":316,"line":359},[314,468,409],{},[293,470,472],{"id":471},"important-indexer-data-lag","Important: Indexer Data Lag",[266,474,475],{},"The supply data returned by the indexer represents the last-seen state and may not reflect the absolute latest on-chain data. There can be a delay between when a transaction occurs on-chain and when the indexer processes it.",[293,477,479],{"id":478},"querying-supply-directly-from-chain","Querying Supply Directly from Chain",[266,481,482],{},"For the most up-to-date supply data, query the blockchain directly via RPC:",[305,484,488],{"className":485,"code":486,"language":487,"meta":310,"style":310},"language-typescript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","\u002F\u002F Using viem, ethers.js or web3.js\nconst totalSupply = await tokenContract.totalSupply();\n","typescript",[279,489,490,496],{"__ignoreMap":310},[314,491,492],{"class":316,"line":317},[314,493,495],{"class":494},"sHwdD","\u002F\u002F Using viem, ethers.js or web3.js\n",[314,497,498,502,506,510,514,517,520,524,527],{"class":316,"line":323},[314,499,501],{"class":500},"spNyl","const",[314,503,505],{"class":504},"sTEyZ"," totalSupply ",[314,507,509],{"class":508},"sMK4o","=",[314,511,513],{"class":512},"s7zQu"," await",[314,515,516],{"class":504}," tokenContract",[314,518,519],{"class":508},".",[314,521,523],{"class":522},"s2Zo4","totalSupply",[314,525,526],{"class":504},"()",[314,528,529],{"class":508},";\n",[266,531,532],{},"Note that the method to retrieve the total supply may vary between contracts. Before querying the blockchain directly, review the contract's ABI and documentation to ensure you're using the correct method.",[266,534,535,536,519],{},"You can find our token contracts on ",[537,538,249],"a",{"href":250},[540,541,542],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":310,"searchDepth":317,"depth":323,"links":544},[545,546,547],{"id":295,"depth":323,"text":296},{"id":471,"depth":323,"text":472},{"id":478,"depth":323,"text":479},"Retrieve token data for M0 protocol tokens including metadata, holders, and supply information.","md",null,{},true,{"title":102,"description":548},"sNaiWrpEVAoRWkEGmxBtCapNowMswd1pMyTJkAsT-38",[556,558],{"title":98,"path":99,"stem":100,"description":557,"children":-1},"Query holder information across different chains in the M0 ecosystem.",{"title":111,"path":112,"stem":113,"description":559,"children":-1},"Technical details and step-by-step workflows for developers integrating with the M0 stablecoin bridging infrastructure."]