Code Monkey home page Code Monkey logo

go-ethereum-web3's Introduction

Go-Ethereum-Web3

Ethereum Golang API, JSON-RPC client, Smart contract transaction API.


├── Contract
│   ├── CallERC20.go -- ERC20Client
│   ├── CallStorage.go -- StorageClient
│   ├── Deploy.go
│   ├── ERC20
│   │   ├── ERC20.abi
│   │   ├── ERC20.sol
│   │   └── EToken.go
│   ├── IERC
│   │   ├── IERC.go
│   │   ├── IERC20.abi
│   │   └── IERC20.sol
│   └── Storage
│       ├── Storage.abi
│       ├── Storage.go
│       └── Storage.sol
├── LICENSE -- GPL3.0
├── README.md
├── SubEvent
│   ├── Read_erc20_event.go
│   ├── Read_event.go
│   └── Sub_event.go
├── Transaction
│   ├── blocks.go -- Get block
│   ├── raw_transaction.go -- Create RawTransaction and SendTransaction
│   ├── send_erc20.go -- Contract transfer
│   ├── send_ether.go -- Transfer ETH
│   ├── sub_block.go -- Subscribe block
│   └── transactions.go -- Output tx data
├── config
│   └── config.go -- File .env config
├── connect
│   └── connect.go -- Connect RPC/WSS
├── Ethaccount
│   ├── account.go -- Account
│   └── checkaddr.go -- Check address is contract
└── go.mod


Deploy contract

solc --abi --bin -o ./ Storage.sol
abigen --bin=Storage.bin --abi=Storage.abi --pkg=storage --out=Storage.go

interface

solc --abi -o ./ IERC20.sol
abigen --abi=IERC20.abi --pkg=IERC --out=IERC.go

Reference:

https://mhxw.life/eth-dev-with-go/docs/en/

https://www.yuhenm.com/archives/529.html

https://mirror.xyz/rbtree.eth/B2OZSszjxD3BfI07WOuAFzzrACilxvZcgb09GYdMgng

go-ethereum-web3's People

Contributors

vcvvvc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.