
Eth.rb
A Ruby library to build, sign, and broadcast Ethereum transactions with full smart contract support.
Overview
eth.rb is a straightforward Ruby library designed for developers who want to build, sign, and broadcast Ethereum transactions in any environment where Ruby runs. It separates key management from node management, allowing users to sign transactions and handle keys locally or remotely, then broadcast through any Ethereum node via HTTP or IPC. The library supports a wide range of Ethereum Improvement Proposals (EIPs), including token transfers (ERC20), ENS domain resolution, replay protection, and multiple transaction types such as EIP-1559 and newer transaction envelopes. It also supports smart contract deployment, interaction, and Solidity contract compilation directly from Ruby.
The library is intended for Ruby developers working on Ethereum infrastructure, DeFi applications, or enterprise blockchain solutions who need a native Ruby toolset for Ethereum interactions. It supports advanced features like EIP-712 typed data signing, smart contract authentication (EIP-1271), and custom Solidity error handling (ERC-6093). The modular design allows integration with any local or remote Ethereum node, making it flexible for various deployment scenarios.
What sets eth.rb apart is its comprehensive coverage of Ethereum standards and transaction types combined with Ruby-native tooling, including ABI encoding/decoding, RLP encoding, and Solidity bindings. It is fully open source under Apache 2.0 and emphasizes thorough documentation and testing, aiming for 100% API coverage and unit test coverage. Developers can get started by installing the gem via RubyGems and referencing detailed API docs and usage examples on GitHub and the project wiki.
The Problem
Ruby developers working with Ethereum often lack a native, comprehensive library to build, sign, and broadcast transactions while supporting the latest Ethereum standards. Managing keys and nodes separately and handling complex transaction types can be cumbersome without a dedicated tool.
The Solution
Key Features
RPC Client for Execution Layer APIs
Supports IPC and HTTP connections to Ethereum nodes for broadcasting transactions and querying blockchain data.
Ethereum Key-Pairs and Encrypted Keystores
Manages Secp256k1 keys and encrypted JSON keystores for secure key handling.
Support for Multiple Ethereum Transaction Types
Handles legacy, EIP-1559, and advanced transaction envelopes including access and authorization lists.
Key Strengths
How Developers Use Eth.rb
Building Ruby-based Ethereum wallets
Developers can create wallets that generate keys, sign transactions, and interact with Ethereum smart contracts entirely in Ruby.
Automating DeFi interactions
Use eth.rb to programmatically execute ERC20 token transfers, interact with DeFi protocols, and manage complex transaction types.
Enterprise blockchain integration
Integrate Ethereum transaction capabilities into Ruby-based enterprise applications with secure key management and node communication.
Works Well With
Ethereum
Ship faster than your competition
Free RPC across 75+ chains. Spin up an endpoint in under 30 seconds.
Compare
View Full Comparison| Composability | |||
| Cross-Chain | |||
| Customizability | |||
| Developer Support | |||
| Ease of Integration | |||
| Performance |
Add a related tool
Eth.rb Alternatives
Explore web3 competitors and apps like Eth.rb.

Streams

Hosted Hardhat
Virtual TestNets
Rarible

MyWish

Network APIs
Tenderly Monitoring

0x

Blockchain Data Indexing

Balancer
Pricing
Open Source | |
|---|---|
| Price (Monthly) | Free |
| Price (Annual) | Free |
| Messaging | N/A |
| Support | Community support via GitHub |
| Analytics |
Start Building Now
Reliable RPC, powerful APIs, and zero hassle.
Resources
The eth.rb project provides comprehensive documentation including API references, usage examples, and a wiki to help developers get started and integrate Ethereum functionality in Ruby applications.