{"id":15684,"date":"2024-06-03T08:00:00","date_gmt":"2024-06-03T08:00:00","guid":{"rendered":"https:\/\/hederav2stg.wpenginepowered.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/"},"modified":"2025-12-08T18:14:00","modified_gmt":"2025-12-08T18:14:00","slug":"token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated","status":"publish","type":"post","link":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/","title":{"rendered":"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries"},"content":{"rendered":"<div class=\"body-text BodyCopy mb-40 style-1\">\n<p dir=\"ltr\">The consensus nodes currently return token information in the queries\u00a0<a href=\"https:\/\/github.com\/hashgraph\/hedera-protobufs\/blob\/main\/services\/crypto_get_info.proto#L147\" target=\"_blank\">getAccountInfo<\/a>, <a href=\"https:\/\/github.com\/hashgraph\/hedera-protobufs\/blob\/main\/services\/contract_get_info.proto#L128\" target=\"_blank\">getContractInfo<\/a> and <a href=\"https:\/\/github.com\/hashgraph\/hedera-protobufs\/blob\/main\/services\/crypto_get_account_balance.proto#L84\" target=\"_blank\">getAccountBalance<\/a>. <strong>The token relations and balance information in those queries is planned for deprecation in the future.<\/strong><\/p>\n<p dir=\"ltr\">The Hedera Mirror Node has been updated to return hbar balances along with token balances and relationships\u00a0in real-time. Thus, the information provided by the queries mentioned above\u00a0can now be obtained using the <a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/rest-api#api-v1-accounts-idoraliasorevmaddress-tokens\" target=\"_blank\">mirror node REST API<\/a>. Specifically, the <strong><em>tokens<\/em><\/strong>\u00a0endpoint below:\u00a0<\/p>\n<pre>\/api\/v1\/accounts\/{idOrAliasOrEvmAddress}\/tokens<\/pre>\n<h4 class=\"color-ultraviolet\"><\/h4>\n<h4 class=\"color-ultraviolet\">Impact<\/h4>\n<p><strong>Exchanges, wallets, and dapp developers will see the fields of the consensus node queries below no longer return data in the future:<\/strong><\/p>\n<ul>\n<li>AccountInfo.tokenRelationships<\/li>\n<li>AccountBalance.tokens<\/li>\n<li>ContractInfo.tokenRelationships<\/li>\n<\/ul>\n<h4 class=\"color-ultraviolet\">Rationale<\/h4>\n<p dir=\"ltr\">With the implementation\u00a0of <a href=\"https:\/\/hips.hedera.com\/hip\/hip-367\">HIP-367<\/a>, retrieving tokens\u2019 fields can lead to an excessive number of calls. To retrieve the balance from tokenAssociations, for example, each tokenID in the array would need a separate map lookup. In return, that getAccountBalance query would become extremely expensive.\u00a0An additional\u00a0challenge with these queries is that they require numerous uncharged map look-ups to find and retrieve the token information; and with association limits being removed, the queries may take an arbitrary amount of time to complete.<\/p>\n<h4 class=\"color-ultraviolet\">Take Action!\u00a0<br \/><\/h4>\n<p>If you&#8217;re using token information obtained from the consensus node queries mentioned in this article, be sure to use\u00a0the Mirror Node REST API for your applications. Visit <a href=\"https:\/\/docs.hedera.com\/hedera\/sdks-and-apis\/rest-api\" target=\"_blank\">our documentation<\/a> to learn how to implement these updates and stay ahead with the latest Hedera updates.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p dir=\"ltr\">Token information returned by getAccountInfo, getAccountBalance, and getContractInfo will be deprecated in the near future. Exchanges, wallets, and dapp developers can access equivalent information from the mirror node REST API. <\/p>\n","protected":false},"author":10,"featured_media":16771,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[1],"tags":[45],"ppma_author":[43],"class_list":["post-15684","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-technical"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Deprecation: Token Information No Longer Returned for Three Consensus Node Queries | Hedera<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries | Hedera\" \/>\n<meta property=\"og:description\" content=\"Token information returned by getAccountInfo, getAccountBalance, and getContractInfo will be deprecated in the near future. Exchanges, wallets, and dapp developers can access equivalent information from the mirror node REST API.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/\" \/>\n<meta property=\"og:site_name\" content=\"Hedera\" \/>\n<meta property=\"article:published_time\" content=\"2024-06-03T08:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-08T18:14:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Hedera Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/\"},\"author\":{\"name\":\"Hedera Team\",\"@id\":\"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4\"},\"headline\":\"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries\",\"datePublished\":\"2024-06-03T08:00:00+00:00\",\"dateModified\":\"2025-12-08T18:14:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/\"},\"wordCount\":244,\"publisher\":{\"@id\":\"https:\/\/hedera.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png\",\"keywords\":[\"technical\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/\",\"url\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/\",\"name\":\"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries | Hedera\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png\",\"datePublished\":\"2024-06-03T08:00:00+00:00\",\"dateModified\":\"2025-12-08T18:14:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage\",\"url\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png\",\"contentUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png\",\"width\":1200,\"height\":628},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hedera.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hedera.com\/#website\",\"url\":\"https:\/\/hedera.com\/\",\"name\":\"Hedera\",\"description\":\"Hello future\",\"publisher\":{\"@id\":\"https:\/\/hedera.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hedera.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hedera.com\/#organization\",\"name\":\"Hedera\",\"url\":\"https:\/\/hedera.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hedera.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png\",\"contentUrl\":\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png\",\"width\":500,\"height\":375,\"caption\":\"Hedera\"},\"image\":{\"@id\":\"https:\/\/hedera.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries | Hedera","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/","og_locale":"en_US","og_type":"article","og_title":"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries | Hedera","og_description":"Token information returned by getAccountInfo, getAccountBalance, and getContractInfo will be deprecated in the near future. Exchanges, wallets, and dapp developers can access equivalent information from the mirror node REST API.","og_url":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/","og_site_name":"Hedera","article_published_time":"2024-06-03T08:00:00+00:00","article_modified_time":"2025-12-08T18:14:00+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png","type":"image\/png"}],"author":"Hedera Team","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#article","isPartOf":{"@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/"},"author":{"name":"Hedera Team","@id":"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4"},"headline":"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries","datePublished":"2024-06-03T08:00:00+00:00","dateModified":"2025-12-08T18:14:00+00:00","mainEntityOfPage":{"@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/"},"wordCount":244,"publisher":{"@id":"https:\/\/hedera.com\/#organization"},"image":{"@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage"},"thumbnailUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png","keywords":["technical"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/","url":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/","name":"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries | Hedera","isPartOf":{"@id":"https:\/\/hedera.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage"},"image":{"@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage"},"thumbnailUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png","datePublished":"2024-06-03T08:00:00+00:00","dateModified":"2025-12-08T18:14:00+00:00","breadcrumb":{"@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#primaryimage","url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png","contentUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545.png","width":1200,"height":628},{"@type":"BreadcrumbList","@id":"https:\/\/hedera.com\/blog\/token-information-returned-by-getaccountinfo-and-getaccountbalance-to-be-deprecated\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hedera.com\/"},{"@type":"ListItem","position":2,"name":"Deprecation: Token Information No Longer Returned for Three Consensus Node Queries"}]},{"@type":"WebSite","@id":"https:\/\/hedera.com\/#website","url":"https:\/\/hedera.com\/","name":"Hedera","description":"Hello future","publisher":{"@id":"https:\/\/hedera.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hedera.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hedera.com\/#organization","name":"Hedera","url":"https:\/\/hedera.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hedera.com\/#\/schema\/logo\/image\/","url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png","contentUrl":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/09\/hedera_logo.png","width":500,"height":375,"caption":"Hedera"},"image":{"@id":"https:\/\/hedera.com\/#\/schema\/logo\/image\/"}}]}},"featured_image_src":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545-600x400.png","featured_image_src_square":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/IMG_3545-600x600.png","author_info":{"display_name":"Hedera Team","author_link":"https:\/\/hedera.com\/blog\/author\/hedera-team\/"},"authors":[{"term_id":43,"user_id":10,"is_guest":0,"slug":"hedera-team","display_name":"Hedera Team","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/7ed01931dc9498365746508c4ca49ed0507ef65e04e0b82ffe88c50ef9242b1d?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":""}],"_links":{"self":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts\/15684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/comments?post=15684"}],"version-history":[{"count":0,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts\/15684\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media\/16771"}],"wp:attachment":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media?parent=15684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/categories?post=15684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/tags?post=15684"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/ppma_author?post=15684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}