{"id":13681748,"url":"https://github.com/trezor/blockbook","last_synced_at":"2025-05-14T00:03:00.650Z","repository":{"id":37450563,"uuid":"101660168","full_name":"trezor/blockbook","owner":"trezor","description":":blue_book: Trezor address/account balance backend ","archived":false,"fork":false,"pushed_at":"2025-05-07T09:10:53.000Z","size":7886,"stargazers_count":712,"open_issues_count":42,"forks_count":690,"subscribers_count":32,"default_branch":"master","last_synced_at":"2025-05-07T09:20:03.004Z","etag":null,"topics":["backend","bitcoin","trezor"],"latest_commit_sha":null,"homepage":"https://trezor.io","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trezor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"COPYING","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},"funding":{"custom":["https://shop.trezor.io/","https://trezor.io/beer/"]}},"created_at":"2017-08-28T15:51:55.000Z","updated_at":"2025-05-07T09:10:57.000Z","dependencies_parsed_at":"2023-02-14T12:15:53.469Z","dependency_job_id":"36612adc-1bf8-49e7-b426-cf15cfd77eed","html_url":"https://github.com/trezor/blockbook","commit_stats":{"total_commits":1860,"total_committers":99,"mean_commits":18.78787878787879,"dds":"0.42311827956989245","last_synced_commit":"ad507589844bb8cc7998e963901f2e112a523a25"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fblockbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fblockbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fblockbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trezor%2Fblockbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trezor","download_url":"https://codeload.github.com/trezor/blockbook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254043267,"owners_count":22004913,"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":["backend","bitcoin","trezor"],"created_at":"2024-08-02T13:01:35.319Z","updated_at":"2025-05-14T00:03:00.602Z","avatar_url":"https://github.com/trezor.png","language":"Go","funding_links":["https://shop.trezor.io/","https://trezor.io/beer/"],"categories":["Go"],"sub_categories":[],"readme":"[![Go Report Card](https://goreportcard.com/badge/trezor/blockbook)](https://goreportcard.com/report/trezor/blockbook)\n\n# Blockbook\n\n**Blockbook** is a back-end service for Trezor Suite. The main features of **Blockbook** are:\n\n-   index of addresses and address balances of the connected block chain\n-   fast index search\n-   simple blockchain explorer\n-   websocket, API and legacy Bitcore Insight compatible socket.io interfaces\n-   support of multiple coins (Bitcoin and Ethereum type) with easy extensibility to other coins\n-   scripts for easy creation of debian packages for backend and blockbook\n\n## Build and installation instructions\n\nOfficially supported platform is **Debian Linux** and **AMD64** architecture.\n\nMemory and disk requirements for initial synchronization of **Bitcoin mainnet** are around 32 GB RAM and over 180 GB of disk space. After initial synchronization, fully synchronized instance uses about 10 GB RAM.\nOther coins should have lower requirements, depending on the size of their block chain. Note that fast SSD disks are highly\nrecommended.\n\nUser installation guide is [here](\u003chttps://wiki.trezor.io/User_manual:Running_a_local_instance_of_Trezor_Wallet_backend_(Blockbook)\u003e).\n\nDeveloper build guide is [here](/docs/build.md).\n\nContribution guide is [here](CONTRIBUTING.md).\n\n## Implemented coins\n\nBlockbook currently supports over 30 coins. The Trezor team implemented\n\n-   Bitcoin, Bitcoin Cash, Zcash, Dash, Litecoin, Bitcoin Gold, Ethereum, Ethereum Classic, Dogecoin, Namecoin, Vertcoin, DigiByte, Liquid\n\nthe rest of coins were implemented by the community.\n\nTestnets for some coins are also supported, for example:\n\n-   Bitcoin Testnet, Bitcoin Cash Testnet, ZCash Testnet, Ethereum Testnets (Sepolia, Holesky)\n\nList of all implemented coins is in [the registry of ports](/docs/ports.md).\n\n## Common issues when running Blockbook or implementing additional coins\n\n#### Out of memory when doing initial synchronization\n\nHow to reduce memory footprint of the initial sync:\n\n-   disable rocksdb cache by parameter `-dbcache=0`, the default size is 500MB\n-   run blockbook with parameter `-workers=1`. This disables bulk import mode, which caches a lot of data in memory (not in rocksdb cache). It will run about twice as slowly but especially for smaller blockchains it is no problem at all.\n\nPlease add your experience to this [issue](https://github.com/trezor/blockbook/issues/43).\n\n#### Error `internalState: database is in inconsistent state and cannot be used`\n\nBlockbook was killed during the initial import, most commonly by OOM killer.\nBy default, Blockbook performs the initial import in bulk import mode, which for performance reasons does not store all data immediately to the database. If Blockbook is killed during this phase, the database is left in an inconsistent state.\n\nSee above how to reduce the memory footprint, delete the database files and run the import again.\n\nCheck [this](https://github.com/trezor/blockbook/issues/89) or [this](https://github.com/trezor/blockbook/issues/147) issue for more info.\n\n#### Running on Ubuntu\n\n[This issue](https://github.com/trezor/blockbook/issues/45) discusses how to run Blockbook on Ubuntu. If you have some additional experience with Blockbook on Ubuntu, please add it to [this issue](https://github.com/trezor/blockbook/issues/45).\n\n#### My coin implementation is reporting parse errors when importing blockchain\n\nYour coin's block/transaction data may not be compatible with `BitcoinParser` `ParseBlock`/`ParseTx`, which is used by default. In that case, implement your coin in a similar way we used in case of [zcash](https://github.com/trezor/blockbook/tree/master/bchain/coins/zec) and some other coins. The principle is not to parse the block/transaction data in Blockbook but instead to get parsed transactions as json from the backend.\n\n## Data storage in RocksDB\n\nBlockbook stores data the key-value store RocksDB. Database format is described [here](/docs/rocksdb.md).\n\n## API\n\nBlockbook API is described [here](/docs/api.md).\n\n## Environment variables\n\nList of environment variables that affect Blockbook's behavior is [here](/docs/env.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrezor%2Fblockbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrezor%2Fblockbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrezor%2Fblockbook/lists"}