{"id":16492373,"url":"https://github.com/interlay/esplora-btc-api","last_synced_at":"2026-03-27T03:12:12.115Z","repository":{"id":47308200,"uuid":"277559839","full_name":"interlay/esplora-btc-api","owner":"interlay","description":"Blockstream Esplora Client (Typescript)","archived":false,"fork":false,"pushed_at":"2022-07-12T15:08:34.000Z","size":88,"stargazers_count":6,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-14T02:41:25.705Z","etag":null,"topics":["bitcoin","blockstream","typescript"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/interlay.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}},"created_at":"2020-07-06T14:10:18.000Z","updated_at":"2022-07-12T14:19:34.000Z","dependencies_parsed_at":"2022-09-06T14:21:11.935Z","dependency_job_id":null,"html_url":"https://github.com/interlay/esplora-btc-api","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/interlay/esplora-btc-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fesplora-btc-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fesplora-btc-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fesplora-btc-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fesplora-btc-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interlay","download_url":"https://codeload.github.com/interlay/esplora-btc-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interlay%2Fesplora-btc-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013963,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"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":["bitcoin","blockstream","typescript"],"created_at":"2024-10-11T14:05:27.232Z","updated_at":"2026-03-27T03:12:12.093Z","avatar_url":"https://github.com/interlay.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [Blockstream Esplora](https://github.com/Blockstream/esplora) OpenAPI Spec \u0026 Clients\n\nBuilt using [OpenAPI](https://github.com/OpenAPITools/openapi-generator). Requires [openapi-generator-cli](https://github.com/OpenAPITools/openapi-generator-cli).\n\n```shell\nmake rust-client\nmake ts-client\n```\n\n## Typescript (Axios)\n\n### Install\n\n```bash\nyarn install @interlay/esplora-btc-api\n```\n\n### Build\n\n```bash\ncd ts-client\nyarn install\nyarn build\n```\n\n### Examples\n\n#### Get the current chain's best height\n\n```typescript\nimport * as esplora from '@interlay/esplora-btc-api';\n\nasync function main() {\n    let result = await new esplora.BlockApi().getLastBlockHeight();\n    console.log(result.data);\n}\n\nmain();\n```\n\n#### Get a raw block and extract the header\n\n```typescript\nimport * as esplora from '@interlay/esplora-btc-api';\n\nasync function main() {\n    const api = new esplora.BlockApi();\n    const result = await api.getBlockRaw(\"$HASH\", {responseType: 'arraybuffer'});\n    console.log(result.data.slice(0, 80).toString('hex'));\n}\n\nmain();\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterlay%2Fesplora-btc-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterlay%2Fesplora-btc-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterlay%2Fesplora-btc-api/lists"}