{"id":18542705,"url":"https://github.com/coinbase/cash-addr","last_synced_at":"2025-04-09T18:32:02.359Z","repository":{"id":59151949,"uuid":"129972859","full_name":"coinbase/cash-addr","owner":"coinbase","description":"Utility to convert between base58 and CashAddr BCH addresses.","archived":false,"fork":false,"pushed_at":"2023-07-16T20:03:58.000Z","size":335,"stargazers_count":28,"open_issues_count":1,"forks_count":8,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-24T10:38:25.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/coinbase.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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-04-17T22:36:23.000Z","updated_at":"2024-11-10T18:40:21.000Z","dependencies_parsed_at":"2024-06-18T21:33:30.524Z","dependency_job_id":"3f19fa44-8830-4d9c-99dd-aecd1830c4c1","html_url":"https://github.com/coinbase/cash-addr","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"6606823b471b937760d2fa26579857a4e3482014"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcash-addr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcash-addr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcash-addr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fcash-addr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coinbase","download_url":"https://codeload.github.com/coinbase/cash-addr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248087831,"owners_count":21045597,"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":[],"created_at":"2024-11-06T20:09:43.002Z","updated_at":"2025-04-09T18:31:57.349Z","avatar_url":"https://github.com/coinbase.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CashAddr\n\nUtility to convert between base58 and CashAddr BCH addresses.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'cash-addr'\n```\n\nAnd then execute:\n\n```\n$ bundle\n```\n\nOr install it yourself as:\n\n```\n$ gem install cash-addr\n```\n\n## Usage\n\nTo convert from a legacy address to CashAddr:\n\n```\nCashAddr::Converter.to_cash_address('mmRH4e9WW4ekZUP5HvBScfUyaSUjfQRyvD')\n```\n\nTo convert from a CashAddr address to legacy:\n\n```\nCashAddr::Converter.to_legacy_address('bchtest:qpqtmmfpw79thzq5z7s0spcd87uhn6d34uqqem83hf')\n```\n\nTo validate a BCH address:\n\n```\nCashAddr::Converter.is_valid?('bchtest:qpqtmmfpw79thzq5z7s0spcd87uhn6d34uqqem83hf')\n```\n\nTo display a BCH CashAddr address without the prefix:\n\n```\nCashAddr::Converter.display_address('bchtest:qpqtmmfpw79thzq5z7s0spcd87uhn6d34uqqem83hf')\n```\n\nNOTE: Testnet addresses are used as examples, but both testnet and mainnet are supported.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Documentation\n\nDocs are generated via rdoc and are located in the `doc` directory. To update the documentation:\n\n```\nrdoc --main README.md -x Gemfile -x Rakefile -x setup -x address -x crypto\n```\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/coinbase/cash-addr.\n\n## License\n\nThe gem is available as open source under the terms of the [Apache 2.0 License](https://opensource.org/licenses/Apache-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinbase%2Fcash-addr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoinbase%2Fcash-addr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinbase%2Fcash-addr/lists"}