{"id":15749,"date":"2023-05-08T10:46:00","date_gmt":"2023-05-08T10:46:00","guid":{"rendered":"https:\/\/hederav2stg.wpenginepowered.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/"},"modified":"2025-12-08T18:26:36","modified_gmt":"2025-12-08T18:26:36","slug":"getting-started-with-the-hedera-consensus-service-javascript-tutorial","status":"publish","type":"post","link":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/","title":{"rendered":"Getting Started With the Hedera Consensus Service (JavaScript Tutorial)"},"content":{"rendered":"<div class=\"body-text BodyCopy mb-40 style-1\">\n<p>\/\/ intro &#8211; req &#8211; what to expect?<\/p>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">What is the Hedera Consensus Service?<\/h4>\n<p>The Hedera Consensus Service (HCS)\u00a0makes it possible for existing centralized platforms (such as auction sites, stock exchanges, and MMO games) to achieve the trust of being decentralized while still having the privacy and performance of being centralized as it can process up to 10,000 transactions per second.\u00a0In other words, many use cases don&#8217;t require complete decentralization and the complexities it comes with.\u00a0<\/p>\n<p>Most use cases can benefit from implementing the Hedera Consensus Service into one of their existing processes to integrate distributed trust or asset provenance.\u00a0HCS has been designed to be a lightweight service that can be quickly integrated into existing processes.<\/p>\n<p>In short, the Hedera Consensus Service offers the following benefits:<\/p>\n<ul>\n<li>Provides the distributed trust of a public network<\/li>\n<li>Enables developers to build native applications on dedicated central servers that are highly efficient and low cost<\/li>\n<li>Enables the use of a public network for trust while protecting private information in private servers<\/li>\n<li>Eliminates the up-front and ongoing costs associated with creating a private network<\/li>\n<\/ul>\n<\/div>\n<div class=\"body-text BodyCopy mb-40 style-1\">\n<h4 class=\"color-ultraviolet\">Code Setup<\/h4>\n<p>This tutorial uses JavaScript code. Make sure you have Node.js version 18 or higher installed.\u00a0<\/p>\n<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\/\/ intro &#8211; req &#8211; what to expect? What is the Hedera Consensus Service? The Hedera Consensus Service (HCS)\u00a0makes it possible for existing centralized platforms (such as auction sites, stock exchanges, and MMO games) to achieve the trust of being decentralized while still having the privacy and performance of being centralized as it can process [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"categories":[1],"tags":[],"ppma_author":[43],"class_list":["post-15749","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Getting Started With the Hedera Consensus Service (JavaScript Tutorial) | 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\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Getting Started With the Hedera Consensus Service (JavaScript Tutorial) | Hedera\" \/>\n<meta property=\"og:description\" content=\"\/\/ intro &#8211; req &#8211; what to expect? What is the Hedera Consensus Service? The Hedera Consensus Service (HCS)\u00a0makes it possible for existing centralized platforms (such as auction sites, stock exchanges, and MMO games) to achieve the trust of being decentralized while still having the privacy and performance of being centralized as it can process [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/\" \/>\n<meta property=\"og:site_name\" content=\"Hedera\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-08T10:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-08T18:26:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/HH60178_OGHederaSite_V2.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\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\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/\"},\"author\":{\"name\":\"Hedera Team\",\"@id\":\"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4\"},\"headline\":\"Getting Started With the Hedera Consensus Service (JavaScript Tutorial)\",\"datePublished\":\"2023-05-08T10:46:00+00:00\",\"dateModified\":\"2025-12-08T18:26:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/\"},\"wordCount\":207,\"publisher\":{\"@id\":\"https:\/\/hedera.com\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/\",\"url\":\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/\",\"name\":\"Getting Started With the Hedera Consensus Service (JavaScript Tutorial) | Hedera\",\"isPartOf\":{\"@id\":\"https:\/\/hedera.com\/#website\"},\"datePublished\":\"2023-05-08T10:46:00+00:00\",\"dateModified\":\"2025-12-08T18:26:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hedera.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Getting Started With the Hedera Consensus Service (JavaScript Tutorial)\"}]},{\"@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":"Getting Started With the Hedera Consensus Service (JavaScript Tutorial) | 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\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/","og_locale":"en_US","og_type":"article","og_title":"Getting Started With the Hedera Consensus Service (JavaScript Tutorial) | Hedera","og_description":"\/\/ intro &#8211; req &#8211; what to expect? What is the Hedera Consensus Service? The Hedera Consensus Service (HCS)\u00a0makes it possible for existing centralized platforms (such as auction sites, stock exchanges, and MMO games) to achieve the trust of being decentralized while still having the privacy and performance of being centralized as it can process [&hellip;]","og_url":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/","og_site_name":"Hedera","article_published_time":"2023-05-08T10:46:00+00:00","article_modified_time":"2025-12-08T18:26:36+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/hedera.com\/wp-content\/uploads\/2025\/12\/HH60178_OGHederaSite_V2.jpg","type":"image\/jpeg"}],"author":"Hedera Team","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/#article","isPartOf":{"@id":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/"},"author":{"name":"Hedera Team","@id":"https:\/\/hedera.com\/#\/schema\/person\/2dc6146f9f20a44d3de58c834d52e9f4"},"headline":"Getting Started With the Hedera Consensus Service (JavaScript Tutorial)","datePublished":"2023-05-08T10:46:00+00:00","dateModified":"2025-12-08T18:26:36+00:00","mainEntityOfPage":{"@id":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/"},"wordCount":207,"publisher":{"@id":"https:\/\/hedera.com\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/","url":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/","name":"Getting Started With the Hedera Consensus Service (JavaScript Tutorial) | Hedera","isPartOf":{"@id":"https:\/\/hedera.com\/#website"},"datePublished":"2023-05-08T10:46:00+00:00","dateModified":"2025-12-08T18:26:36+00:00","breadcrumb":{"@id":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/hedera.com\/blog\/getting-started-with-the-hedera-consensus-service-javascript-tutorial\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hedera.com\/"},{"@type":"ListItem","position":2,"name":"Getting Started With the Hedera Consensus Service (JavaScript Tutorial)"}]},{"@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":null,"featured_image_src_square":null,"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\/15749","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=15749"}],"version-history":[{"count":0,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/posts\/15749\/revisions"}],"wp:attachment":[{"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/media?parent=15749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/categories?post=15749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/tags?post=15749"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/hedera.com\/wp-json\/wp\/v2\/ppma_author?post=15749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}