{"id":18492199,"url":"https://github.com/makevoid/blockchain-info-api-basic","last_synced_at":"2026-03-09T18:38:26.987Z","repository":{"id":31079328,"uuid":"34638325","full_name":"makevoid/blockchain-info-api-basic","owner":"makevoid","description":"Simple API around Blockchain.info to: get address balance, get UTXOs, and push transactions.","archived":false,"fork":false,"pushed_at":"2023-01-03T20:46:45.000Z","size":1115,"stargazers_count":1,"open_issues_count":12,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-08T08:04:14.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/makevoid/blockchain-api","language":"JavaScript","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/makevoid.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}},"created_at":"2015-04-27T00:46:38.000Z","updated_at":"2023-03-14T14:55:10.000Z","dependencies_parsed_at":"2023-01-14T18:17:47.829Z","dependency_job_id":null,"html_url":"https://github.com/makevoid/blockchain-info-api-basic","commit_stats":null,"previous_names":["makevoid/blockchain-api-basic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fblockchain-info-api-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fblockchain-info-api-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fblockchain-info-api-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fblockchain-info-api-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makevoid","download_url":"https://codeload.github.com/makevoid/blockchain-info-api-basic/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254046196,"owners_count":22005551,"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","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-11-06T13:06:31.508Z","updated_at":"2025-12-12T04:57:42.316Z","avatar_url":"https://github.com/makevoid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Simple API around Blockchain.info to: **get address balance, get UTXOs, and push transactions.**\n\n### Install\n\n    npm i --save blockchain-api-basic\n\n### Usage\n\nRequire the api:\n\n```js\nconst bcApi   = require('blockchain-api-basic')\nconst balance = bcApi.balance\nconst utxos   = bcApi.utxos\nconst pushTx  = bcApi.pushTx\n```\n\n- **balance(address)**\n\nRetreives the balance of a given address\n\n```js\n;(async () =\u003e {\n  const bal = await balance(address)\n  console.log(\"balance:\", bal)\n  // =\u003e balance: 9754600 (satoshis)\n})()\n```\n\n- **utxos(address)**\n\nRetrieves all the unspent transaction outputs for a given address:\n\n```js\nconst outputs = await utxos(address)\nconsole.log(\"UTXOs:\", outputs)\n// =\u003e UTXOs: [ { tx_hash: ... }, {...} ]\n```\n\n(note I'm omitting async from this example)\n\n- **pushTx(tx_hash)**\n\n```js\nconst rawTX = \"....\" // your raw tx - for example you can create a transaction by using bitcoinjslib or bitcore and then serialize the transaction to get the raw tx in hex format\nconst response = await pushtx(rawTX)\nconsole.log(\"push tx response:\", response)\n```\n\n---\n\nEnjoy!\n\n@makevoid\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Fblockchain-info-api-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakevoid%2Fblockchain-info-api-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Fblockchain-info-api-basic/lists"}