{"id":17278292,"url":"https://github.com/kulpreet/btcr-service","last_synced_at":"2025-10-12T17:15:21.604Z","repository":{"id":146434791,"uuid":"141576694","full_name":"kulpreet/btcr-service","owner":"kulpreet","description":"HTTP service for querying bitcoin tx info to help develop BTCR tools","archived":false,"fork":false,"pushed_at":"2018-07-23T10:03:47.000Z","size":34,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T08:51:11.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kulpreet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2018-07-19T12:31:42.000Z","updated_at":"2022-07-31T03:14:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"b6be7d30-6865-4ebd-809a-dc258ec61746","html_url":"https://github.com/kulpreet/btcr-service","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kulpreet/btcr-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Fbtcr-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Fbtcr-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Fbtcr-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Fbtcr-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kulpreet","download_url":"https://codeload.github.com/kulpreet/btcr-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kulpreet%2Fbtcr-service/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267875461,"owners_count":24158779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-15T09:11:18.316Z","updated_at":"2025-10-12T17:15:16.584Z","avatar_url":"https://github.com/kulpreet.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple HTTP Service to query txrefs\n\n## Install\n\n`go get github.com/kulpreet/btcr-service`\n\n## Start Service\n\n```\ncd $GOPATH/github.com/kulpreet/btcr-service\ngo build\n./btcr-service\n```\n\n## Resolve a BTCR DID\n\nThis is still a WIP, see /tip for now\n\n`https://localhost:8080/txref/\u003ctxref\u003e/resolve`\n\n## Following a tip\n\n`https://localhost:8080/txref/\u003ctxref\u003e/tip`\n\nThe above will list all transactions matching the address in the vout\nfrom the txref. We assume there is only one address in the vout for\nnow, as we are only focussed on P2PKH for the current MVP.\n\nBy default this endpoint only shows spending transactions from the\nlist of transactions originating at txref.\n\nThe same endpoint can also show all the transactions that were\nconsidered for following the tip by passing a spendsOnly query string\nparameter, spendsOnly, as false. For example: \n\n`https://localhost:8080/txref/\u003ctxref\u003e/tip?spendsOnly=false`\n\n\n## Decoding a Txref\n\n`https://localhost:8080/txref/\u003cTxRef\u003e/decode`\n\n## Get Txid from Txref\n\n`https://localhost:8080/txref/\u003cTxRef\u003e/txid`\n\n## Get decoded Tx from Txid\n\n`https://localhost:8080/tx/\u003cTxid\u003e`\n\n## Txid to UTXOs for the address in Txid\n\n`https://localhost:8080/addr/\u003caddr\u003e/spends`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulpreet%2Fbtcr-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkulpreet%2Fbtcr-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkulpreet%2Fbtcr-service/lists"}