{"id":16699989,"url":"https://github.com/narkoz/bitcoiner","last_synced_at":"2025-04-10T03:51:21.377Z","repository":{"id":65982273,"uuid":"115485916","full_name":"NARKOZ/bitcoiner","owner":"NARKOZ","description":"Ruby interface to the 'bitcoind' JSON-RPC API","archived":false,"fork":false,"pushed_at":"2021-12-26T00:13:56.000Z","size":31,"stargazers_count":17,"open_issues_count":0,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T05:05:14.101Z","etag":null,"topics":["bitcoin","bitcoin-api","bitcoind","bitcoinrpc","btc","coin","cryptocurrency","json-rpc","wallet"],"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/NARKOZ.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://github.com/NARKOZ/SponsorMe"}},"created_at":"2017-12-27T05:44:18.000Z","updated_at":"2024-11-24T06:37:55.000Z","dependencies_parsed_at":"2023-02-19T19:16:10.130Z","dependency_job_id":null,"html_url":"https://github.com/NARKOZ/bitcoiner","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NARKOZ%2Fbitcoiner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NARKOZ%2Fbitcoiner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NARKOZ%2Fbitcoiner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NARKOZ%2Fbitcoiner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NARKOZ","download_url":"https://codeload.github.com/NARKOZ/bitcoiner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248154999,"owners_count":21056542,"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-api","bitcoind","bitcoinrpc","btc","coin","cryptocurrency","json-rpc","wallet"],"created_at":"2024-10-12T18:08:48.526Z","updated_at":"2025-04-10T03:51:21.352Z","avatar_url":"https://github.com/NARKOZ.png","language":"Ruby","readme":"# Bitcoiner [![Build Status](https://travis-ci.org/NARKOZ/bitcoiner.svg?branch=master)](https://travis-ci.org/NARKOZ/bitcoiner)\n\nAutomate your [Bitcoin](https://bitcoin.org/) transactions with this Ruby\ninterface to the `bitcoind` JSON-RPC API. This is a fork of\n[bitcoind](https://github.com/bkerley/bitcoind) Ruby gem.\n\n![Super Mario Coin](https://user-images.githubusercontent.com/253398/34371748-45c440f2-eae9-11e7-84ba-fddae754d59a.jpg)\n\n## Installation\n\nInstall it from rubygems:\n\n```\ngem install bitcoiner\n```\n\nOr add to a Gemfile:\n\n```ruby\ngem 'bitcoiner'\n# gem 'bitcoiner', github: 'NARKOZ/bitcoiner'\n```\n\n## Usage\n\n### Connecting\n\nBefore connecting, you will need to configure a username and password for\n`bitcoind`, and start `bitcoind`. Once that's done:\n\n```ruby\nclient = Bitcoiner.new 'username', 'password' # REPLACE WITH YOUR bitcoin.conf rpcuser/rpcpassword\n# =\u003e #\u003cBitcoiner::Client \"http://username:password@127.0.0.1:8332\" \u003e\n```\n\n### Account Balances\n\nYou can get the balance of all addresses controlled by the client:\n\n```ruby\nclient.balance\n# =\u003e 12.34\n```\n\nYou can also get a hash of all accounts the client controls:\n\n```ruby\nclient.accounts\n# =\u003e {\"Your Address\"=\u003e#\u003cBitcoiner::Account \"Your Address\" \u003e, \"eve-online ransoms\"=\u003e#\u003cBitcoiner::Account \"eve-online ransoms\" \u003e}\n```\n\nAnd of course each account has its own balance too:\n\n```ruby\nransom = client.accounts['eve-online ransoms']\n# =\u003e #\u003cBitcoiner::Account \"eve-online ransoms\" \u003e\n\nransom.balance\n# =\u003e 2.19\n```\n\n### Transactions\n\nYou can get all the transactions in an account:\n\n```ruby\nransom.transactions\n# =\u003e [#\u003cBitcoiner::Transaction abadbabe123deadbeef 2.19 to eve-online ransoms at 2011-02-19 16:21:09 -0500\u003e]\n```\n\nYou can send money from an account too:\n\n```ruby\nransom.send_to 'destinationaddress', 2\n# =\u003e #\u003cBitcoiner::Account deadbeef888abadbeef UNCONFIRMED\u003e\n```\n\n### Making Accounts\n\nCreating an account with an associated address is done through the accounts\ninterface:\n\n```ruby\ntiny_wings = client.accounts.new 'tiny wings ransoms'\n# =\u003e #\u003cBitcoiner::Account \"tiny wings ransoms\" \u003e\n\ntiny_wings.address\n# =\u003e \"1KV5khnHbbHF2nNQkk7Pe5nPndEj43U27r\"\n```\n\n### Logging\n\nYou may log requests (responses aren't logged) by setting a logger:\n\n```\nlogger = Logger.new(STDOUT)\nclient = Bitcoiner::Client.new('username', 'password', 'http://a.c', {\n  logger: logger,\n})\n```\n\n## License\n\nReleased under the MIT license. See LICENSE.txt for details.\n","funding_links":["https://github.com/NARKOZ/SponsorMe"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarkoz%2Fbitcoiner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnarkoz%2Fbitcoiner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnarkoz%2Fbitcoiner/lists"}