{"id":18284599,"url":"https://github.com/libsv/go-bt","last_synced_at":"2025-04-04T18:04:13.632Z","repository":{"id":38094965,"uuid":"306689041","full_name":"libsv/go-bt","owner":"libsv","description":"The go-to Bitcoin Transaction (BT) Go library.","archived":false,"fork":false,"pushed_at":"2025-03-27T10:51:44.000Z","size":2459,"stargazers_count":68,"open_issues_count":10,"forks_count":27,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-28T17:09:07.727Z","etag":null,"topics":["bitcoin","bitcoin-golang-library","bitcoin-script","bitcoin-transaction","bitcoinsv","bsv","go","golang"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/mod/github.com/libsv/go-bt","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/libsv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-23T16:25:21.000Z","updated_at":"2025-03-18T13:51:18.000Z","dependencies_parsed_at":"2024-12-21T03:08:02.016Z","dependency_job_id":"7d16c7d1-4045-4512-9ffa-2cd1d81cce1d","html_url":"https://github.com/libsv/go-bt","commit_stats":{"total_commits":549,"total_committers":24,"mean_commits":22.875,"dds":0.6502732240437159,"last_synced_commit":"a4699f10d71fcd9612813f0a5001e6084cce3ec3"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsv%2Fgo-bt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsv%2Fgo-bt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsv%2Fgo-bt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsv%2Fgo-bt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libsv","download_url":"https://codeload.github.com/libsv/go-bt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247226212,"owners_count":20904465,"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":["bitcoin","bitcoin-golang-library","bitcoin-script","bitcoin-transaction","bitcoinsv","bsv","go","golang"],"created_at":"2024-11-05T13:14:08.620Z","updated_at":"2025-04-04T18:04:13.608Z","avatar_url":"https://github.com/libsv.png","language":"Go","funding_links":["https://github.com/sponsors/libsv"],"categories":[],"sub_categories":[],"readme":"# go-bt\n\n\u003e The go-to Bitcoin Transaction (BT) GoLang library  \n\n[![Release](https://img.shields.io/github/release-pre/libsv/go-bt.svg?logo=github\u0026style=flat\u0026v=1)](https://github.com/libsv/go-bt/releases)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/libsv/go-bt/run-tests.yml?logo=github\u0026v=3)](https://github.com/libsv/go-bt/actions)\n[![Report](https://goreportcard.com/badge/github.com/libsv/go-bt?style=flat\u0026v=1)](https://goreportcard.com/report/github.com/libsv/go-bt)\n[![codecov](https://codecov.io/gh/libsv/go-bt/branch/master/graph/badge.svg?v=1)](https://codecov.io/gh/libsv/go-bt)\n[![Go](https://img.shields.io/github/go-mod/go-version/libsv/go-bt?v=1)](https://golang.org/)\n[![Sponsor](https://img.shields.io/badge/sponsor-libsv-181717.svg?logo=github\u0026style=flat\u0026v=3)](https://github.com/sponsors/libsv)\n[![Donate](https://img.shields.io/badge/donate-bitcoin-ff9900.svg?logo=bitcoin\u0026style=flat\u0026v=3)](https://gobitcoinsv.com/#sponsor)\n[![Mergify Status][mergify-status]][mergify]\n\n[mergify]: https://mergify.com\n[mergify-status]: https://img.shields.io/endpoint.svg?url=https://api.mergify.com/v1/badges/libsv/go-bt\u0026style=flat\n\u003cbr/\u003e\n\n## Table of Contents\n\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Examples \u0026 Tests](#examples--tests)\n- [Benchmarks](#benchmarks)\n- [Code Standards](#code-standards)\n- [Usage](#usage)\n- [Maintainers](#maintainers)\n- [Contributing](#contributing)\n- [License](#license)\n\n\u003cbr/\u003e\n\n## Installation\n\n**go-bt** requires a [supported release of Go](https://golang.org/doc/devel/release.html#policy).\n\n```shell script\ngo get -u github.com/libsv/go-bt/v2\n```\n\n\u003cbr/\u003e\n\n## Documentation\n\nView the generated [documentation](https://pkg.go.dev/github.com/libsv/go-bt)\n\n[![GoDoc](https://godoc.org/github.com/libsv/go-bt?status.svg\u0026style=flat)](https://pkg.go.dev/github.com/libsv/go-bt)\n\nFor more information around the technical aspects of Bitcoin, please see the updated [Bitcoin Wiki](https://wiki.bitcoinsv.io/index.php/Main_Page)\n\n\u003cbr/\u003e\n\n### Features\n\n- Full featured Bitcoin transactions and transaction manipulation/functionality\n- Auto-fee calculations for change outputs\n- Transaction fee calculation and related checks\n- Interfaced signing/unlocking of transaction inputs for easy adaptation/custimisation and extendability for any use case\n- Bitcoin Transaction [Script](bscript) functionality\n  - Bitcoin script engine ([interpreter](bscript/interpreter))\n  - P2PKH (base58 addresses)\n  - Data (OP_RETURN)\n  - [BIP276](https://github.com/moneybutton/bips/blob/master/bip-0276.mediawiki)\n\n#### Coming Soon! (18 months\u003csup\u003eTM\u003c/sup\u003e)\n\n- Complete SigHash Flag Capability\n- MultiSig functionality\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003e\u003ccode\u003eLibrary Deployment\u003c/code\u003e\u003c/strong\u003e\u003c/summary\u003e\n\u003cbr/\u003e\n\n[goreleaser](https://github.com/goreleaser/goreleaser) for easy binary or library deployment to Github and can be installed via: `brew install goreleaser`.\n\nThe [.goreleaser.yml](.goreleaser.yml) file is used to configure [goreleaser](https://github.com/goreleaser/goreleaser).\n\nUse `make release-snap` to create a snapshot version of the release, and finally `make release` to ship to production.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003e\u003ccode\u003eMakefile Commands\u003c/code\u003e\u003c/strong\u003e\u003c/summary\u003e\n\u003cbr/\u003e\n\nView all `makefile` commands\n\n```shell script\nmake help\n```\n\nList of all current commands:\n\n```text\nall                  Runs multiple commands\nclean                Remove previous builds and any test cache data\nclean-mods           Remove all the Go mod cache\ncoverage             Shows the test coverage\ngodocs               Sync the latest tag with GoDocs\nhelp                 Show this help message\ninstall              Install the application\ninstall-go           Install the application (Using Native Go)\nlint                 Run the golangci-lint application (install if not found)\nrelease              Full production release (creates release in Github)\nrelease              Runs common.release then runs godocs\nrelease-snap         Test the full release (build binaries)\nrelease-test         Full production test release (everything except deploy)\nreplace-version      Replaces the version in HTML/JS (pre-deploy)\ntag                  Generate a new tag and push (tag version=0.0.0)\ntag-remove           Remove a tag if found (tag-remove version=0.0.0)\ntag-update           Update an existing tag to current commit (tag-update version=0.0.0)\ntest                 Runs vet, lint and ALL tests\ntest-ci              Runs all tests via CI (exports coverage)\ntest-ci-no-race      Runs all tests via CI (no race) (exports coverage)\ntest-ci-short        Runs unit tests via CI (exports coverage)\ntest-short           Runs vet, lint and tests (excludes integration tests)\nuninstall            Uninstall the application (and remove files)\nupdate-linter        Update the golangci-lint package (macOS only)\nvet                  Run the Go vet application\n```\n\n\u003c/details\u003e\n\n\u003cbr/\u003e\n\n## Examples \u0026 Tests\n\nAll unit tests and [examples](examples) run via [Github Actions](https://github.com/libsv/go-bt/actions) and\nuses [Go version 1.16.x](https://golang.org/doc/go1.16). View the [configuration file](.github/workflows/run-tests.yml).\n\nRun all tests (including integration tests)\n\n```shell script\nmake test\n```\n\nRun tests (excluding integration tests)\n\n```shell script\nmake test-short\n```\n\n\u003cbr/\u003e\n\n## Benchmarks\n\nRun the Go [benchmarks](tx_test.go):\n\n```shell script\nmake bench\n```\n\n\u003cbr/\u003e\n\n## Code Standards\n\nRead more about this Go project's [code standards](.github/CODE_STANDARDS.md).\n\n\u003cbr/\u003e\n\n## Usage\n\nView the [examples](examples)\n\n\u003cbr/\u003e\n\n## Contributing\n\nView the [contributing guidelines](.github/CONTRIBUTING.md) and please follow the [code of conduct](.github/CODE_OF_CONDUCT.md).\n\n### How can I help?\n\nAll kinds of contributions are welcome :raised_hands:!\nThe most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon:.\nYou can also support this project by [becoming a sponsor on GitHub](https://github.com/sponsors/libsv) :clap:\nor by making a [**bitcoin donation**](https://gobitcoinsv.com/#sponsor) to ensure this journey continues indefinitely! :rocket:\n\n[![Stars](https://img.shields.io/github/stars/libsv/go-bt?label=Please%20like%20us\u0026style=social)](https://github.com/libsv/go-bt/stargazers)\n\n\u003cbr/\u003e\n\n## License\n\n[![License](https://img.shields.io/github/license/libsv/go-bt.svg?style=flat\u0026v=1)](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsv%2Fgo-bt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibsv%2Fgo-bt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsv%2Fgo-bt/lists"}