{"id":8267,"date":"2025-11-03T13:04:58","date_gmt":"2025-11-03T13:04:58","guid":{"rendered":"https:\/\/paybis.com\/blog\/?post_type=glossary&#038;p=8267"},"modified":"2025-11-03T13:04:59","modified_gmt":"2025-11-03T13:04:59","slug":"hashed-timelock-contract-htlc","status":"publish","type":"glossary","link":"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/","title":{"rendered":"Hashed TimeLock Contract (HTLC)"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><a id=\"post-8267-_3pahlw98vfi3\"><\/a>What is a Hashed TimeLock Contract (HTLC)?<\/h2>\n\n\n\n<p>The name <em>Hashed TimeLock Contract<\/em> might sound intimidating, but it\u2019s really a combination of two simple ideas:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Hashlock:<\/strong> A <a href=\"https:\/\/paybis.com\/blog\/glossary\/cryptography\/\">cryptographic<\/a> lock that requires a secret code (called a preimage) to unlock funds.<\/li>\n\n\n\n<li><strong>Timelock:<\/strong> A deadline that ensures the transaction is either completed on time or automatically canceled. <\/li>\n<\/ul>\n\n\n\n<p>Put together, these features allow two people who don\u2019t fully trust each other to safely exchange <a href=\"https:\/\/paybis.com\/blog\/glossary\/what-is-a-digital-asset\/\">digital assets<\/a> without a middleman.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-8267-_890d0ll8fkvd\"><\/a>Why HTLCs Matter<\/h2>\n\n\n\n<p>HTLCs are a cornerstone of advanced crypto systems because they remove the need for trust:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Atomic swaps:<\/strong> They make cross-chain trading possible without centralized exchanges.<\/li>\n\n\n\n<li><strong>Lightning Network:<\/strong> HTLCs power fast, low-cost <a href=\"https:\/\/paybis.com\/blog\/glossary\/what-is-bitcoin\/\">Bitcoin<\/a> payments by ensuring that payment channels are settled correctly.<\/li>\n\n\n\n<li><strong>Security:<\/strong> Funds are either safely transferred or automatically refunded, reducing the risk of fraud. <\/li>\n<\/ul>\n\n\n\n<p>By enabling conditional and time-based transfers, HTLCs bridge the gap between different blockchains and support scalability solutions.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a id=\"post-8267-_ygctpafevzi4\"><\/a>Real-World Example<\/h2>\n\n\n\n<p>Suppose you want to buy something with Bitcoin, but the seller only accepts Litecoin. Instead of going through an exchange, you could use an HTLC-powered <a href=\"https:\/\/paybis.com\/blog\/glossary\/what-are-atomic-swaps\/\">atomic swap<\/a>. This way, you swap your BTC for their LTC directly, without trusting a third party, and without worrying that one side will disappear with the funds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A Hashed TimeLock Contract (HTLC) is a type of smart contract used in crypto to ensure secure, trustless transactions between two parties. It combines cryptographic hashes with time-based conditions, making sure funds are only released if both parties meet the agreed terms within a set deadline.<\/p>\n","protected":false},"featured_media":0,"template":"","glossary_letter":[282],"glossary_term":[277,281,279],"class_list":["post-8267","glossary","type-glossary","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>What Does Hashed TimeLock Contract (HTLC) Mean? - Paybis<\/title>\n<meta name=\"description\" content=\"Learn what Hashed TimeLock Contracts (HTLCs) are, how they work and why they\u2019re essential for atomic swaps and the Lightning Network.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What Does Hashed TimeLock Contract (HTLC) Mean? - Paybis\" \/>\n<meta property=\"og:description\" content=\"Learn what Hashed TimeLock Contracts (HTLCs) are, how they work and why they\u2019re essential for atomic swaps and the Lightning Network.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/\" \/>\n<meta property=\"og:site_name\" content=\"Paybis Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Paybis\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-03T13:04:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/paybis.com\/blog\/wp-content\/uploads\/2023\/07\/og-individuals.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=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@paybis_com\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/\",\"url\":\"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/\",\"name\":\"What Does Hashed TimeLock Contract (HTLC) Mean? - Paybis\",\"isPartOf\":{\"@id\":\"https:\/\/paybis.com\/blog\/#website\"},\"datePublished\":\"2025-11-03T13:04:58+00:00\",\"dateModified\":\"2025-11-03T13:04:59+00:00\",\"description\":\"Learn what Hashed TimeLock Contracts (HTLCs) are, how they work and why they\u2019re essential for atomic swaps and the Lightning Network.\",\"breadcrumb\":{\"@id\":\"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/paybis.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Glossary\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/paybis.com\/blog\/#website\",\"url\":\"https:\/\/paybis.com\/blog\/\",\"name\":\"Paybis Blog\",\"description\":\"A Tribute to Blockchain Tech and Cryptocurrency Adoption\",\"publisher\":{\"@id\":\"https:\/\/paybis.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/paybis.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/paybis.com\/blog\/#organization\",\"name\":\"Paybis Blog\",\"url\":\"https:\/\/paybis.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/paybis.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/paybis.com\/blog\/wp-content\/uploads\/2023\/01\/e60675e736aa42dcba29dde94f4efdf82a001656.png\",\"contentUrl\":\"https:\/\/paybis.com\/blog\/wp-content\/uploads\/2023\/01\/e60675e736aa42dcba29dde94f4efdf82a001656.png\",\"width\":268,\"height\":72,\"caption\":\"Paybis Blog\"},\"image\":{\"@id\":\"https:\/\/paybis.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Paybis\/\",\"https:\/\/x.com\/paybis_com\",\"https:\/\/www.instagram.com\/paybis\/\",\"https:\/\/www.linkedin.com\/company\/paybis-com\",\"https:\/\/www.youtube.com\/c\/Paybis\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What Does Hashed TimeLock Contract (HTLC) Mean? - Paybis","description":"Learn what Hashed TimeLock Contracts (HTLCs) are, how they work and why they\u2019re essential for atomic swaps and the Lightning Network.","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:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/","og_locale":"en_US","og_type":"article","og_title":"What Does Hashed TimeLock Contract (HTLC) Mean? - Paybis","og_description":"Learn what Hashed TimeLock Contracts (HTLCs) are, how they work and why they\u2019re essential for atomic swaps and the Lightning Network.","og_url":"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/","og_site_name":"Paybis Blog","article_publisher":"https:\/\/www.facebook.com\/Paybis\/","article_modified_time":"2025-11-03T13:04:59+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/paybis.com\/blog\/wp-content\/uploads\/2023\/07\/og-individuals.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@paybis_com","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/","url":"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/","name":"What Does Hashed TimeLock Contract (HTLC) Mean? - Paybis","isPartOf":{"@id":"https:\/\/paybis.com\/blog\/#website"},"datePublished":"2025-11-03T13:04:58+00:00","dateModified":"2025-11-03T13:04:59+00:00","description":"Learn what Hashed TimeLock Contracts (HTLCs) are, how they work and why they\u2019re essential for atomic swaps and the Lightning Network.","breadcrumb":{"@id":"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/paybis.com\/blog\/glossary\/hashed-timelock-contract-htlc\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/paybis.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Glossary"}]},{"@type":"WebSite","@id":"https:\/\/paybis.com\/blog\/#website","url":"https:\/\/paybis.com\/blog\/","name":"Paybis Blog","description":"A Tribute to Blockchain Tech and Cryptocurrency Adoption","publisher":{"@id":"https:\/\/paybis.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/paybis.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/paybis.com\/blog\/#organization","name":"Paybis Blog","url":"https:\/\/paybis.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/paybis.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/paybis.com\/blog\/wp-content\/uploads\/2023\/01\/e60675e736aa42dcba29dde94f4efdf82a001656.png","contentUrl":"https:\/\/paybis.com\/blog\/wp-content\/uploads\/2023\/01\/e60675e736aa42dcba29dde94f4efdf82a001656.png","width":268,"height":72,"caption":"Paybis Blog"},"image":{"@id":"https:\/\/paybis.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Paybis\/","https:\/\/x.com\/paybis_com","https:\/\/www.instagram.com\/paybis\/","https:\/\/www.linkedin.com\/company\/paybis-com","https:\/\/www.youtube.com\/c\/Paybis"]}]}},"_links":{"self":[{"href":"https:\/\/paybis.com\/blog\/wp-json\/wp\/v2\/glossary\/8267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paybis.com\/blog\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/paybis.com\/blog\/wp-json\/wp\/v2\/types\/glossary"}],"wp:attachment":[{"href":"https:\/\/paybis.com\/blog\/wp-json\/wp\/v2\/media?parent=8267"}],"wp:term":[{"taxonomy":"glossary_letter","embeddable":true,"href":"https:\/\/paybis.com\/blog\/wp-json\/wp\/v2\/glossary_letter?post=8267"},{"taxonomy":"glossary_term","embeddable":true,"href":"https:\/\/paybis.com\/blog\/wp-json\/wp\/v2\/glossary_term?post=8267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}