
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Automate your Bitcoin transactions with this Ruby
interface to the bitcoind
JSON-RPC API. This is a fork of
bitcoind Ruby gem.
Install it from rubygems:
gem install bitcoiner
Or add to a Gemfile:
gem 'bitcoiner'
# gem 'bitcoiner', github: 'NARKOZ/bitcoiner'
Before connecting, you will need to configure a username and password for
bitcoind
, and start bitcoind
. Once that's done:
client = Bitcoiner.new 'username', 'password' # REPLACE WITH YOUR bitcoin.conf rpcuser/rpcpassword
# => #<Bitcoiner::Client "http://username:password@127.0.0.1:8332" >
You can get the balance of all addresses controlled by the client:
client.balance
# => 12.34
You can also get a hash of all accounts the client controls:
client.accounts
# => {"Your Address"=>#<Bitcoiner::Account "Your Address" >, "eve-online ransoms"=>#<Bitcoiner::Account "eve-online ransoms" >}
And of course each account has its own balance too:
ransom = client.accounts['eve-online ransoms']
# => #<Bitcoiner::Account "eve-online ransoms" >
ransom.balance
# => 2.19
You can get all the transactions in an account:
ransom.transactions
# => [#<Bitcoiner::Transaction abadbabe123deadbeef 2.19 to eve-online ransoms at 2011-02-19 16:21:09 -0500>]
You can send money from an account too:
ransom.send_to 'destinationaddress', 2
# => #<Bitcoiner::Account deadbeef888abadbeef UNCONFIRMED>
Creating an account with an associated address is done through the accounts interface:
tiny_wings = client.accounts.new 'tiny wings ransoms'
# => #<Bitcoiner::Account "tiny wings ransoms" >
tiny_wings.address
# => "1KV5khnHbbHF2nNQkk7Pe5nPndEj43U27r"
You may log requests (responses aren't logged) by setting a logger:
logger = Logger.new(STDOUT)
client = Bitcoiner::Client.new('username', 'password', 'http://a.c', {
logger: logger,
})
Released under the MIT license. See LICENSE.txt for details.
FAQs
Unknown package
We found that bitcoiner demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.