{"id":13514324,"url":"https://github.com/xdrpp/stc","last_synced_at":"2026-01-18T01:37:18.158Z","repository":{"id":47027863,"uuid":"142509743","full_name":"xdrpp/stc","owner":"xdrpp","description":"Stellar transaction compiler","archived":false,"fork":false,"pushed_at":"2025-08-14T00:28:20.000Z","size":964,"stargazers_count":24,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T00:34:51.756Z","etag":null,"topics":["go","rfc4506","stellar","xdr"],"latest_commit_sha":null,"homepage":"https://xdrpp.github.io/stc/pkg/github.com/xdrpp/stc/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xdrpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2018-07-27T00:52:02.000Z","updated_at":"2025-08-14T00:28:24.000Z","dependencies_parsed_at":"2024-06-18T20:09:25.381Z","dependency_job_id":"74f99748-8229-4feb-9afb-8190506dd558","html_url":"https://github.com/xdrpp/stc","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/xdrpp/stc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdrpp%2Fstc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdrpp%2Fstc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdrpp%2Fstc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdrpp%2Fstc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xdrpp","download_url":"https://codeload.github.com/xdrpp/stc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xdrpp%2Fstc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28526556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"ssl_error","status_checked_at":"2026-01-18T00:39:39.467Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["go","rfc4506","stellar","xdr"],"created_at":"2024-08-01T05:00:52.857Z","updated_at":"2026-01-18T01:37:18.122Z","avatar_url":"https://github.com/xdrpp.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Stellar transaction compiler\n\nstc is a library and command-line tool for creating, editing, and\nmanipulating transactions for the [Stellar](https://www.stellar.org/)\nblockchain.  It supports translating back and forth between\nhuman-readable [txrep] format and Stellar's native binary XDR\nrepresentation, as well submitting transactions to the network,\nquerying account status, and more.  The library makes it easy to build\nand submit transactions programmatically from go applications.\n\n# Installing `stc` for non-developers\n\nTo install or upgrade this software if you don't plan to hack on it,\nrun the following:\n\n    GOPROXY=direct go install github.com/xdrpp/stc/...@latest\n\nThe `GOPROXY` environment variable requests the latest version of the\nsoftware from github, instead of calling home to Google's module proxy\nand allowing Google to supply an incorrect or stale version of the\nsoftware (which unfortunately happened to the author).\n\nOnce this command completes, put the `~/go/bin` directory on your path\nand you should be able to run `stc`.\n\nFor most purposes you can simply depend on the latest release.\nHowever, if you wish to install the latest development version from\nwithin a go module (a directory with a `go.mod` file), you will need\nto specify the `go1` branch to get autogenerated files that are not\navailable on the `master` branch.  Do so by running:\n\n    rm -rf ~/go/src/github.com/xdrpp/stc\n    GOPROXY=direct go get github.com/xdrpp/stc/...@go1\n\nAssuming your GOPATH is in the default location of `~/go`, the `rm`\ncommand is necessary when upgrading because [some `go get`\nlimitation](https://github.com/golang/go/issues/27526) leaves your\ntree in a detached state, so that `go get -u` cannot pull from the\nremote `go1` branch.\n\n## Using Docker\n\nTo use `stc` within a containerised environment it is possible to run\n`stc` using our Docker image. All transactions are generated inside\nthe container and are made available to the host system through\nvolume mounts.\n\n`docker run -it --rm -v /etc/ssl/certs/:/etc/ssl/certs/ -v /tmp:/tmp -v $HOME/.config/stc:/root/.config/stc xdrpp-stc`\n\n### Shell Alias\n\nTo make containerised usage seamless you can also create a shell alias.\n\n```\n# Stellar Transaction Compiler\nalias stc='docker run -it --rm -v /etc/ssl/certs/:/etc/ssl/certs/ -v /tmp:/tmp -v $HOME/.config/stc:/root/.config/stc xdrpp-stc'\n```\n\nOnce the alias is setup you will be able to interact with `stc` directly\nfrom the host system or within Kubernetes.\n\n```\nstc transaction.xdr\n```\n\n# Using `stc`\n\nSee the [stc(1)][stc.1] man page for the command-line tool.  There's\nalso a [video][stc-presentation] of a presentation and demo of stc at\nthe 2020 Stellar Meridian conference.\n\nSee [pkg.go.dev](https://pkg.go.dev/github.com/xdrpp/stc) for\ndocumentation of the go library.\n\n# Building `stc` for developers\n\nBecause `stc` requires autogenerated files, the `master` branch is not\nmeant to be compiled under `$GOPATH`, but rather in a standalone\ndirectory with `make`.\n\nFurthermore, to build `stc` from the `master` branch, you also need to\nhave the [`goxdr`](https://github.com/xdrpp/goxdr) compiler.  Because\n`stc` is codeveloped with goxdr, you may want to use a development\nversion of `goxdr`, which you can do by placing a the `goxdr` source\ntree (or a symbolic link to it) in `cmd/goxdr`.  If you don't want to\ndo this, but are okay just using a snapshot of `goxdr`, you can run:\n\n    make depend\n\nOnce you have `goxdr`, you can build `stc` by running:\n\n    make\n\nTo install `stc`, you will also need [pandoc](https://pandoc.org/) to\nformat the man page.\n\n## Documentation for unreleased versions\n\nWhen new features are added, the latest godoc documentation is\navailable [here][gh-pages].\n\n## Building `stc` for experimental protocol versions\n\nTo build a version of `stc` supporting changes to the transaction\nformat that have not yet been merged into `stellar-core`, you can\nfetch alternate XDR files with either of the commands:\n\n\u003e `./make-xdr` _BRANCH_\n\n\u003e `./make-xdr` _REPO_ _BRANCH_\n\nHere _REPO_ is the git repository from which to pull the non-standard\nversion of `stellar-core` (default\n\u003chttps://github.com/stellar/stellar-core.git\u003e), and _BRANCH_ is either\na branch name in the remote repository or a github pull request\nnumber.  To revert to the standard XDR, simply run `./make-xdr` with\nno arguments.\n\n# Disclaimer\n\nThere is no warranty for the program, to the extent permitted by\napplicable law.  Except when otherwise stated in writing the copyright\nholders and/or other parties provide the program \"as is\" without\nwarranty of any kind, either expressed or implied, including, but not\nlimited to, the implied warranties of merchantability and fitness for\na particular purpose.  The entire risk as to the quality and\nperformance of the program is with you.  Should the program prove\ndefective, you assume the cost of all necessary servicing, repair or\ncorrection.\n\nIn no event unless required by applicable law or agreed to in writing\nwill any copyright holder, or any other party who modifies and/or\nconveys the program as permitted above, be liable to you for damages,\nincluding any general, special, incidental or consequential damages\narising out of the use or inability to use the program (including but\nnot limited to loss of data or data being rendered inaccurate or\nlosses sustained by you or third parties or a failure of the program\nto operate with any other programs), even if such holder or other\nparty has been advised of the possibility of such damages.\n\n[gh-pages]: https://xdrpp.github.io/stc/pkg/github.com/xdrpp/stc/\n[stc.1]: https://xdrpp.github.io/stc/pkg/github.com/xdrpp/stc/cmd/stc/stc.1.html\n[txrep]: https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0011.md\n[stc-presentation]: https://www.youtube.com/watch?v=re5NQvdFfew\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdrpp%2Fstc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxdrpp%2Fstc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxdrpp%2Fstc/lists"}