{"id":29124853,"url":"https://github.com/hirosystems/platform-template-clarity-bitcoin","last_synced_at":"2026-02-03T18:01:31.620Z","repository":{"id":263041289,"uuid":"886906892","full_name":"hirosystems/platform-template-clarity-bitcoin","owner":"hirosystems","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-18T09:19:11.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-23T06:43:49.366Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clarity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hirosystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-11-11T20:27:28.000Z","updated_at":"2025-11-18T09:19:11.000Z","dependencies_parsed_at":"2024-11-15T19:31:53.157Z","dependency_job_id":"768d1e8a-ad17-4216-8a4e-e2a52646937d","html_url":"https://github.com/hirosystems/platform-template-clarity-bitcoin","commit_stats":null,"previous_names":["hiro-platform-templates/clarity-bitcoin","hirosystems/platform-template-clarity-bitcoin"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/hirosystems/platform-template-clarity-bitcoin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fplatform-template-clarity-bitcoin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fplatform-template-clarity-bitcoin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fplatform-template-clarity-bitcoin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fplatform-template-clarity-bitcoin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hirosystems","download_url":"https://codeload.github.com/hirosystems/platform-template-clarity-bitcoin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fplatform-template-clarity-bitcoin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29051269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-29T21:07:00.106Z","updated_at":"2026-02-03T18:01:31.574Z","avatar_url":"https://github.com/hirosystems.png","language":"Clarity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interact with Bitcoin using Clarity\n\nThis example demonstrates how to use Clarity to parse Bitcoin transactions and block headers and verify that transactions were sent on the blockchain.\n\n## Know your Contract\n\nThe [clarity-bitcoin.clar](/contracts/clarity-bitcoin.clar) contract includes the following functionality.\n\n- `parse-tx (..)` function dives into how to parse a Bitcoin transaction and the expected return type for your use in your business logic\n- `verify-block-header (...)` function unpacks the nuances of verifying a block header for a given block height\n- `was-tx-mined-compact` and `was-segwit-tx-mined-compact` functions determines whether or not a Bitcoin transaction was mined in a previous Bitcoin block\n\nTo add a new contract, use [Clarinet](https://docs.hiro.so/stacks/clarinet).\n\n## Test your Contract\n\n- You can manually test your your contracts in the [Clarinet console](https://docs.hiro.so/clarinet/how-to-guides/how-to-test-contract#load-contracts-in-a-console).\n- You can programmatically test your contracts with [unit tests](https://docs.hiro.so/clarinet/how-to-guides/how-to-test-contract).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosystems%2Fplatform-template-clarity-bitcoin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirosystems%2Fplatform-template-clarity-bitcoin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosystems%2Fplatform-template-clarity-bitcoin/lists"}