
Security News
Nx npm Packages Compromised in Supply Chain Attack Weaponizing AI CLI Tools
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
decred_ruby_explorer
Advanced tools
Ruby wrapper for the popular Decred blockchain query API service. Developed to be used at BitJá, the Brazilian cryptocurrency liquidity exchange.
Add this line to your application's Gemfile:
gem 'decred_ruby_explorer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install decred_ruby_explorer
Here's how to perform queries by block, address and transactions.
# Get all transactions from a given block
explorer.block_full_txs '00000000000000000312d464517dac67b8e92c3a76d594daa8abfb2f03ac6144'
# Get all transactions involving a given address
explorer = DecredRubyExplorer::Api.new
explorer.address_full_txs 'Dso5XEY8AoYBtjDUTuxyExfYeqMv7vuZDsG'
# Get information about a specific transaction
explorer.tx_info '1eac92a05a4d9a954b3cf7d0cd235d81312d7b79d3373ffe217cecc6fa06f522'
After 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.
To 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.
I prefer good code whenever possible, just like you. The rubocop tool is used in this project to ensure the code is well written:
$ rubocop lib/
Bug reports and pull requests are welcome on GitHub at https://github.com/rodrigoalvesvieira/decred_ruby_explorer.
This project is based on BlockCypher's ruby client.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that decred_ruby_explorer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.