Skip to content

mxdu-tech/ethereum-go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum Go Client Backend

A lightweight backend service for interacting with Ethereum networks using Go and go-ethereum.

This project demonstrates a structured approach to building backend services that handle blockchain interactions, including transaction execution, contract deployment, and on-chain data querying.


Overview

This project focuses on building a minimal yet practical abstraction layer over Ethereum RPC using Go.

It provides reusable patterns for:

  • Blockchain data querying
  • Transaction construction and submission
  • Smart contract deployment and interaction
  • Go contract bindings via abigen

Key Features

  • Query block data from Ethereum network
  • Send ETH transactions programmatically
  • Deploy smart contracts via Go
  • Generate and use contract bindings (abigen)
  • Interact with smart contracts (read/write methods)

Technical Highlights

Structured Blockchain Interaction

Encapsulated common Ethereum operations using go-ethereum:

  • ethclient connection management
  • transaction signing and submission
  • contract call abstraction

Contract Binding Integration

  • Used abigen to generate Go bindings from Solidity contracts
  • Enabled type-safe contract interaction in Go

End-to-End Workflow

Demonstrates the full lifecycle:

  • Write Solidity contract
  • Compile (ABI / BIN)
  • Generate bindings
  • Deploy contract
  • Interact via backend service

Project Structure

cmd/            # application entry point
internal/       # core logic (client, services)
contracts/      # Solidity contracts

Tech Stack

  • Go
  • go-ethereum (ethclient)
  • Solidity
  • Sepolia Testnet

Example Use Cases

  • Backend service interacting with Ethereum
  • Automated transaction execution
  • Contract deployment scripts
  • Blockchain data ingestion

What This Project Demonstrates

  • Practical use of go-ethereum in backend services
  • Clean separation between blockchain logic and application layer
  • End-to-end contract interaction workflow
  • Foundation for building Web3 backend services

Author

M.X Du

Smart Contract Engineer (EVM)

About

Lightweight Go backend for Ethereum interaction using ethclient and contract bindings

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors