{"id":16465587,"url":"https://github.com/peterfox/jquery-bitstrapped","last_synced_at":"2026-02-24T18:39:31.420Z","repository":{"id":11815384,"uuid":"14365782","full_name":"peterfox/jQuery-Bitstrapped","owner":"peterfox","description":"A jQuery plugin for looking up the final balance and other values of multiple Bitcoin Addresses through Blockchain Info","archived":false,"fork":false,"pushed_at":"2013-11-14T23:09:52.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T18:35:43.989Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterfox.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":"2013-11-13T14:12:11.000Z","updated_at":"2013-11-16T02:14:42.000Z","dependencies_parsed_at":"2022-08-18T17:43:12.431Z","dependency_job_id":null,"html_url":"https://github.com/peterfox/jQuery-Bitstrapped","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/peterfox/jQuery-Bitstrapped","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2FjQuery-Bitstrapped","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2FjQuery-Bitstrapped/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2FjQuery-Bitstrapped/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2FjQuery-Bitstrapped/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterfox","download_url":"https://codeload.github.com/peterfox/jQuery-Bitstrapped/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterfox%2FjQuery-Bitstrapped/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29795363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T16:37:37.581Z","status":"ssl_error","status_checked_at":"2026-02-24T16:37:37.074Z","response_time":75,"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":"2024-10-11T11:34:32.088Z","updated_at":"2026-02-24T18:39:31.399Z","avatar_url":"https://github.com/peterfox.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# jQuery Bitstrapped\n\nLooks up bitcoin address data from the Bitcoin blockchain (via Blockchain.info) when it's stored in the dom, then triggering events on those elements. The main purpose is on those occassions where you want a static page to display dynamic content about your bitcoin addresses' info like what the final balance might be or the most recent transactions.\n\nSo firstly add the library\n\n```html\n\u003cscript src=\"jquery-bitstrapped.js\"\u003e\u003c/script\u003e\n```\n\nMake some elements with bitcoin addresses, note they must be valid address e.g. alpha numeric and 34 characters long, if the address doesn't exist then it'll cause errors in that none of the addresses will work:\n\n```html\n\u003cspan id=\"first\" data-xbt-address=\"1GoFkzsKr1BUE9XdQRz38TAkwgMubQWG6E\"\u003e\u003c/span\u003e\n\u003cspan id=\"second\" data-xbt-address=\"1Mup9bq9KLGuWPeBUqD4vuXBEYeLuEJZBD\"\u003e\u003c/span\u003e\n```\n\nYou'll also want to set up some triggers for after the API call has finished as well, check the data isn't null, if it is then one of your addresses is invalid, if one address is null all events are still trigger but with null values parsed in. The valid object getting parsed in will be the same kind of address JSON you get from the multiaddress api call found at [Blockchain.info](https://blockchain.info/api/blockchain_api)\n\n```javascript\n$('#first').on('bitstrapped', function(event, data) {\n  \tif(data) {\n  \t\t$(this).text(data.final_balance);\n  \t}\n});\n\n$('#second').on('bitstrapped', function(event, data) {\n\tif(data) {\n\t\t$(this).attr('data-balance', data.final_balance);\n\t}\n});\n```\n\nThen you can activate the library with (JSON object for the parameters is optional).\n\n```javascript\n$().bitstrap({interval:60000});\n```\n\nAnd done, now the library will keep polling for updated info \n\n### Depends on:\n\n * [jQuery](https://jquery.com/) works with both 1 and 2\n\n### Donations:\n\nBoth example addresses in this ReadMe file are working addresses that belong to me, if you like the work and are feeling generous please send me a satoshi or two\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Fjquery-bitstrapped","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterfox%2Fjquery-bitstrapped","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterfox%2Fjquery-bitstrapped/lists"}