{"id":13790158,"url":"https://github.com/yuan-xy/libra_client_ruby","last_synced_at":"2025-05-12T07:31:29.453Z","repository":{"id":45108837,"uuid":"203813963","full_name":"yuan-xy/libra_client_ruby","owner":"yuan-xy","description":"A ruby client for Libra network","archived":true,"fork":false,"pushed_at":"2022-01-07T22:33:10.000Z","size":89,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T22:05:22.151Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuan-xy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-22T14:39:47.000Z","updated_at":"2024-11-21T02:52:02.000Z","dependencies_parsed_at":"2022-08-20T13:00:14.612Z","dependency_job_id":null,"html_url":"https://github.com/yuan-xy/libra_client_ruby","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuan-xy%2Flibra_client_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuan-xy%2Flibra_client_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuan-xy%2Flibra_client_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuan-xy%2Flibra_client_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuan-xy","download_url":"https://codeload.github.com/yuan-xy/libra_client_ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253695149,"owners_count":21948821,"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-08-03T22:00:37.807Z","updated_at":"2025-05-12T07:31:28.985Z","avatar_url":"https://github.com/yuan-xy.png","language":"Ruby","funding_links":[],"categories":["Testnet"],"sub_categories":["Libraries"],"readme":"# LibraClient\n\nLibraClient is an unofficial client for [Libra blockchain](http://libra.org). The library allows Ruby program to interact with Libra nodes with [protobuf](https://developers.google.com/protocol-buffers/) message through [grpc](https://grpc.io/). \n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'libra_client'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install libra_client\n\n## Usage\n\n### Get Account state\n```ruby\nrequire 'libra_client'\nclient = Libra::Client.new(:testnet)\nstate = client.get_account_state(\"000000000000000000000000000000000000000000000000000000000a550c18\")\nstate.balance\t\t\t#the balance of the account\nstate.sequence_number\t#the sequence_number of the account\n```\n\n### Get Transaction\n```ruby\nrequire 'libra_client'\nclient = Libra::Client.new(:testnet)\nclient.get_transaction(0) #get the genesis transaction\nclient.get_transaction(1) #get the first transaction\nversion = client.get_latest_transaction_version\nclient.get_transaction(version) #get the latest transaction\n```\n\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` 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## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/yuanxinyu/libra_client. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuan-xy%2Flibra_client_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuan-xy%2Flibra_client_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuan-xy%2Flibra_client_ruby/lists"}