Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Ruby API for Ethereum & Bitcoin Blockchain networks
Have a look at this blog post for a detail description about Connect to Ethereum node using IPC
Once you've verified that Ruby is installed:
gem install elchapo
require 'elchapo'
IPC Client for Ethereum
eth_client = Ethereum::Connection.new("/root/.ethereum/rinkeby/geth.ipc")
RPC Client for Ethereum
eth_client = Ethereum::HttpConnection.new("http://0.0.0.0:8545")
RPC Client for Bitcoin
btc_client = Bitcoin::HttpConnection.new("http://127.0.0.1:18333", user: "foo", pass: "bar")
After you create the connection client, you can use all these Ethereum eth
commands & Bitcoin RPC commands.
https://github.com/ethereum/wiki/wiki/JSON-RPC
https://github.com/ethereum/go-ethereum/wiki/Management-APIs
https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list
eth_client.eth_accounts
btc_client.getinfo
You can pass parameters as method arguments,
btc_client.sendtoaddress("awl2llkjalwo209ao23rjaslkjv30", 0.1)
Make sure you are using underscore instead of capitals. Eg: getBalance
=> get_balance
client.get_balance("ACCOUNT NUMBER")
This gem is inspired from ethereum.rb
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Elchapo project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that elchapo 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.