
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
bitcoin-3rd-party-apis
Advanced tools
Ruby wrapper for various popular 3rd-party bitcoin related APIs. At the moment only Block Explorer (http://blockexplorer.com) and BlockChain.info (http://blockchain.info) are wrapped. The gem exposes some handy bitcoin blockchain query methods, useful for thin bitcoin clients.
Add this line to your application's Gemfile:
gem 'bitcoin-3rd-party-apis'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bitcoin-3rd-party-apis
mytransactions
returns Ruby hash of raw transactions relating to the specified address(es).
BlockExplorer.mytransactions(address)
BlockExplorer.mytransactions([address1, address2])
multiaddr
is similar to BlockExplorer's mytransactions
, but returns a more user-friendly hash.
BlockchainInfo.multiaddr(address)
BlockchainInfo.multiaddr([address1, address2])
getreceivedbyaddress
returns BigDecimal of the total amount of bitcoins sent to the address. Note for the BlockchainInfo
version, 120
is the maximum confirmation number.
BlockExplorer.getreceivedbyaddress(address)
BlockExplorer.getreceivedbyaddress(address, 3) # return received amount where transactions have minconf=3
BlockchainInfo.getreceivedbyaddress(address)
BlockchainInfo.getreceivedbyaddress(address, 3) # return received amount where transactions have minconf=3
longest_block_count
returns count of the longest blockchain in the network. This blockchain is considered the current blockchain.
BlockchainInfo.longest_block_count
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that bitcoin-3rd-party-apis 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
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.