{"id":19939159,"url":"https://github.com/zapnap/bitbank","last_synced_at":"2025-05-03T14:32:40.674Z","repository":{"id":62554281,"uuid":"1884780","full_name":"zapnap/bitbank","owner":"zapnap","description":"Easy to use Ruby interface to the Bitcoind JSON-RPC API","archived":false,"fork":false,"pushed_at":"2013-04-01T01:18:26.000Z","size":164,"stargazers_count":18,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T21:37:56.925Z","etag":null,"topics":["bitcoin","bitcoind","ruby"],"latest_commit_sha":null,"homepage":"","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/zapnap.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-06-12T14:30:04.000Z","updated_at":"2025-04-09T01:14:12.000Z","dependencies_parsed_at":"2022-11-03T04:46:00.978Z","dependency_job_id":null,"html_url":"https://github.com/zapnap/bitbank","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapnap%2Fbitbank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapnap%2Fbitbank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapnap%2Fbitbank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zapnap%2Fbitbank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zapnap","download_url":"https://codeload.github.com/zapnap/bitbank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252203419,"owners_count":21710960,"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","bitcoind","ruby"],"created_at":"2024-11-12T23:45:09.847Z","updated_at":"2025-05-03T14:32:40.159Z","avatar_url":"https://github.com/zapnap.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitbank\n\nAn easy-to-use Ruby interface for the Bitcoind JSON-RPC API. Work in progress :).\n\n## Getting Started\n\nFirst, you need to be running bitcoind. Download and install the official client from http://bitcoin.org/\n\nNext, in order for the client to respond to JSON-RPC commands, you need to enable it in the config file. An example of this and a good explanation of the various options can be found at https://en.bitcoin.it/wiki/Running_Bitcoin\n\nMake sure to set the server, rpcuser, and rpcpassword options.\n\n## Connecting\n\nConfigure the username and password to match the ones in your bitcoind config. I recommend storing these in a yaml file (see the example config.yml). Once you've done that, you can initialize the client and make requests:\n\n    client = Bitbank.new('/path/to/bitbank/config.yml')\n\n## Accounts and Account Balances\n\nYou can have a number of different Bitcoin accounts and addresses.\n\n    account = client.new_account('named-account')\n\n    account = client.account('named-account') # or account_by_address\n    puts \"#{account.name} has bitcoin address #{account.address}\"\n\n    client.accounts.each do |account|\n      puts \"#{account.name}: #{account.balance}\"\n    end\n\nOr you can get the current balance for all your accounts:\n\n    client.balance\n    # =\u003e 10.05\n\n## Transactions\n\nEach account also has a list of transactions (both sent and received).\n\n    account.transactions.each do |transaction|\n      puts \"[#{transaction.category}] #{transaction.address} #{transaction.amount}\"\n    end\n\nYou can move money between your accounts:\n\n    account.move('another-account', 0.5)\n\nAnd of course you can send payments using the library too:\n\n    account.pay('134rUPDEWP8Qp7sShm5bpvmpPtR2mfAeAV', 1.0)\n\nThis would send 1 BTC to me. Which would be really awesome, if you'd like to support the continued development of the gem :).\n\n## Contributing to Bitbank\n\n* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet\n* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it\n* Fork the project\n* Start a feature/bugfix branch\n* Commit and push until you are happy with your contribution\n* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.\n* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.\n\n## Copyright\n\nCopyright (c) 2013 Nick Plante. See LICENSE.txt for\nfurther details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapnap%2Fbitbank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzapnap%2Fbitbank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzapnap%2Fbitbank/lists"}