{"id":13746702,"url":"https://github.com/decred/dcrd","last_synced_at":"2025-05-14T01:07:31.936Z","repository":{"id":37382053,"uuid":"50457080","full_name":"decred/dcrd","owner":"decred","description":"Decred daemon in Go (golang).","archived":false,"fork":false,"pushed_at":"2025-04-07T19:53:26.000Z","size":42021,"stargazers_count":756,"open_issues_count":24,"forks_count":301,"subscribers_count":74,"default_branch":"master","last_synced_at":"2025-04-23T17:16:36.271Z","etag":null,"topics":["blockchain","cryptocurrency","dcrd","decred","decred-daemon","decred-nodes","go","golang","p2p","peer-to-peer"],"latest_commit_sha":null,"homepage":"https://decred.org","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/decred.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-26T20:28:42.000Z","updated_at":"2025-04-15T05:45:53.000Z","dependencies_parsed_at":"2023-10-05T06:27:23.086Z","dependency_job_id":"d60bc950-a7d0-4dfc-bc11-742187e71272","html_url":"https://github.com/decred/dcrd","commit_stats":{"total_commits":6760,"total_committers":164,"mean_commits":41.21951219512195,"dds":0.422189349112426,"last_synced_commit":"7735cbb4e11b61636e88ad07e9ad8c1a30dd4047"},"previous_names":["decred/btcd"],"tags_count":401,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decred%2Fdcrd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decred%2Fdcrd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decred%2Fdcrd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/decred%2Fdcrd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/decred","download_url":"https://codeload.github.com/decred/dcrd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250477819,"owners_count":21437049,"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":["blockchain","cryptocurrency","dcrd","decred","decred-daemon","decred-nodes","go","golang","p2p","peer-to-peer"],"created_at":"2024-08-03T06:00:59.060Z","updated_at":"2025-04-23T17:17:00.859Z","avatar_url":"https://github.com/decred.png","language":"Go","readme":"dcrd\n====\n\n[![Build Status](https://github.com/decred/dcrd/workflows/Build%20and%20Test/badge.svg)](https://github.com/decred/dcrd/actions)\n[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg)](http://copyfree.org)\n[![Doc](https://img.shields.io/badge/doc-reference-blue.svg)](https://pkg.go.dev/github.com/decred/dcrd)\n[![Go Report Card](https://goreportcard.com/badge/github.com/decred/dcrd)](https://goreportcard.com/report/github.com/decred/dcrd)\n\n## Decred Overview\n\nDecred is a blockchain-based cryptocurrency with a strong focus on community\ninput, open governance, and sustainable funding for development. It utilizes a\nhybrid proof-of-work and proof-of-stake mining system to ensure that a small\ngroup cannot dominate the flow of transactions or make changes to Decred without\nthe input of the community.  A unit of the currency is called a `decred` (DCR).\n\nhttps://decred.org\n\n## Latest Downloads\n\nhttps://decred.org/downloads/\n\nCore software:\n\n* dcrd: a Decred full node daemon (this)\n* [dcrwallet](https://github.com/decred/dcrwallet): a CLI Decred wallet daemon\n* [dcrctl](https://github.com/decred/dcrctl): a CLI client for dcrd and dcrwallet\n\nBundles:\n\n* [Decrediton](https://github.com/decred/decrediton): a GUI bundle for `dcrd`\n  and `dcrwallet`\n* [CLI app suite](https://github.com/decred/decred-release/releases/latest):\n  a CLI bundle for `dcrd` and `dcrwallet`\n\n## What is dcrd?\n\ndcrd is a full node implementation of Decred written in Go (golang).\n\nIt acts as a fully-validating chain daemon for the Decred cryptocurrency.  dcrd\nmaintains the entire past transactional ledger of Decred and allows relaying of\ntransactions to other Decred nodes around the world.\n\nThis software is currently under active development.  It is extremely stable and\nhas been in production use since February 2016.\n\nIt important to note that dcrd does *NOT* include wallet functionality.  Users\nwho desire a wallet will need to use [dcrwallet(CLI)](https://github.com/decred/dcrwallet)\nor [Decrediton(GUI)](https://github.com/decred/decrediton).\n\n## What is a full node?\n\nThe term 'full node' is short for 'fully-validating node' and refers to software\nthat fully validates all transactions and blocks, as opposed to trusting a 3rd\nparty.  In addition to validating transactions and blocks, nearly all full nodes\nalso participate in relaying transactions and blocks to other full nodes around\nthe world, thus forming the peer-to-peer network that is the backbone of the\nDecred cryptocurrency.\n\nThe full node distinction is important, since full nodes are not the only type\nof software participating in the Decred peer network. For instance, there are\n'lightweight nodes' which rely on full nodes to serve the transactions, blocks,\nand cryptographic proofs they require to function, as well as relay their\ntransactions to the rest of the global network.\n\n## Why run dcrd?\n\nAs described in the previous section, the Decred cryptocurrency relies on having\na peer-to-peer network of nodes that fully validate all transactions and blocks\nand then relay them to other full nodes.\n\nRunning a full node with dcrd contributes to the overall security of the\nnetwork, increases the available paths for transactions and blocks to relay,\nand helps ensure there are an adequate number of nodes available to serve\nlightweight clients, such as Simplified Payment Verification (SPV) wallets.\n\nWithout enough full nodes, the network could be unable to expediently serve\nusers of lightweight clients which could force them to have to rely on\ncentralized services that significantly reduce privacy and are vulnerable to\ncensorship.\n\nIn terms of individual benefits, since dcrd fully validates every block and\ntransaction, it provides the highest security and privacy possible when used in\nconjunction with a wallet that also supports directly connecting to it in full\nvalidation mode, such as [dcrwallet (CLI)](https://github.com/decred/dcrwallet)\nand [Decrediton (GUI)](https://github.com/decred/decrediton).  It is also ideal\nfor businesses and services that need the most reliable and accurate data about\ntransactions.\n\n## Minimum Recommended Specifications (dcrd only)\n\n* 16 GB disk space (as of April 2022, increases over time, ~2 GB/yr)\n* 2 GB memory (RAM)\n* ~150 MB/day download, ~1.5 GB/day upload\n  * Plus one-time initial download of the entire block chain\n* Windows 10 (server preferred), macOS, Linux\n* High uptime\n\n## Getting Started\n\nSo, you've decided to help the network by running a full node.  Great!  Running\ndcrd is simple.  All you need to do is install dcrd on a machine that is\nconnected to the internet and meets the minimum recommended specifications, and\nlaunch it.\n\nAlso, make sure your firewall is configured to allow inbound connections to port\n9108.\n\n\u003ca name=\"Installation\" /\u003e\n\n## Installing and updating\n\n### Binaries (Windows/Linux/macOS)\n\nBinary releases are provided for common operating systems and architectures.\nThe easiest method is to download Decrediton from the link below, which will\ninclude dcrd. Advanced users may prefer the Command-line app suite, which\nincludes dcrd and dcrwallet.\n\nhttps://decred.org/downloads/\n\n* How to verify binaries before installing: https://docs.decred.org/advanced/verifying-binaries/\n* How to install the CLI Suite: https://docs.decred.org/wallets/cli/cli-installation/\n* How to install Decrediton: https://docs.decred.org/wallets/decrediton/decrediton-setup/\n\n### Build from source (all platforms)\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eInstall Dependencies\u003c/b\u003e\u003c/summary\u003e\n\n- **Go 1.23 or 1.24**\n\n  Installation instructions can be found here: https://golang.org/doc/install.\n  Ensure Go was installed properly and is a supported version:\n  ```sh\n  $ go version\n  $ go env GOROOT GOPATH\n  ```\n  NOTE: `GOROOT` and `GOPATH` must not be on the same path. Since Go 1.8 (2016),\n  `GOROOT` and `GOPATH` are set automatically, and you do not need to change\n  them. However, you still need to add `$GOPATH/bin` to your `PATH` in order to\n  run binaries installed by `go get` and `go install` (On Windows, this happens\n  automatically).\n\n  Unix example -- add these lines to .profile:\n\n  ```\n  PATH=\"$PATH:/usr/local/go/bin\"  # main Go binaries ($GOROOT/bin)\n  PATH=\"$PATH:$HOME/go/bin\"       # installed Go projects ($GOPATH/bin)\n  ```\n\n- **Git**\n\n  Installation instructions can be found at https://git-scm.com or\n  https://gitforwindows.org.\n  ```sh\n  $ git version\n  ```\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eWindows Example\u003c/b\u003e\u003c/summary\u003e\n\n  ```PowerShell\n  PS\u003e git clone https://github.com/decred/dcrd $env:USERPROFILE\\src\\dcrd\n  PS\u003e cd $env:USERPROFILE\\src\\dcrd\n  PS\u003e go install . .\\cmd\\...\n  PS\u003e dcrd -V\n  ```\n\n  Run the `dcrd` executable now installed in `\"$(go env GOPATH)\\bin\"`.\n\u003c/details\u003e\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eUnix Example\u003c/b\u003e\u003c/summary\u003e\n\n  This assumes you have already added `$GOPATH/bin` to your `$PATH` as described\n  in dependencies.\n\n  ```sh\n  $ git clone https://github.com/decred/dcrd $HOME/src/dcrd\n  $ git clone https://github.com/decred/dcrctl $HOME/src/dcrctl\n  $ (cd $HOME/src/dcrd \u0026\u0026 go install . ./...)\n  $ (cd $HOME/src/dcrctl \u0026\u0026 go install)\n  $ dcrd -V\n  ```\n\n  Run the `dcrd` executable now installed in `$GOPATH/bin`.\n\u003c/details\u003e\n\n## Building and Running OCI Containers (aka Docker/Podman)\n\nThe project does not officially provide container images.  However, all of the\nnecessary files to build your own lightweight non-root container image based on\n`scratch` from the latest source code are available in\n[contrib/docker](./contrib/docker/README.md).\n\nIt is also worth noting that, to date, most users typically prefer to run `dcrd`\ndirectly, without using a container, for at least a few reasons:\n\n- `dcrd` is a static binary that does not require root privileges and therefore\n  does not suffer from the usual deployment issues that typically make\n  containers attractive\n- It is harder and more verbose to run `dcrd` from a container as compared to\n  normal:\n  - `dcrd` is designed to automatically create a working default configuration\n    which means it just works out of the box without the need for additional\n    configuration for almost all typical users\n  - The blockchain data and configuration files need to be persistent which\n    means configuring and managing a docker data volume\n  - Running non-root containers with `docker` requires special care in regards\n    to permissions\n\n## Running Tests\n\nAll tests and linters may be run using the script `run_tests.sh`.  Generally,\nDecred only supports the current and previous major versions of Go.\n\n```\n./run_tests.sh\n```\n\n## Contact\n\nIf you have any further questions you can find us at:\n\nhttps://decred.org/community/\n\n## Issue Tracker\n\nThe [integrated github issue tracker](https://github.com/decred/dcrd/issues)\nis used for this project.\n\n## Documentation\n\nThe documentation for dcrd is a work-in-progress.  It is located in the\n[docs](https://github.com/decred/dcrd/tree/master/docs) folder.\n\n## License\n\ndcrd is licensed under the [copyfree](http://copyfree.org) ISC License.\n","funding_links":[],"categories":["Go","Privacy Coins","\u003ca name=\"Go\"\u003e\u003c/a\u003eGo"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecred%2Fdcrd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdecred%2Fdcrd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdecred%2Fdcrd/lists"}