abigen: go install

This commit is contained in:
Nasfame 2024-02-05 15:27:27 +05:30
parent eb93fd065b
commit a0f8ccec38
No known key found for this signature in database
GPG key ID: C9FB9DF973DC5C96

View file

@ -6,8 +6,7 @@ description: Introduction to the Go binding generator tool, Abigen
Abigen is a binding-generator for easily interacting with Ethereum using Go. Abigen creates easy-to-use, type-safe Go packages from Ethereum smart contract definitions known as ABIs. This abstracts away a lot of the complexity of handling smart contract deployment and interaction in Go native applications such as encoding and decoding smart contracts into EVM bytecode. Abigen comes bundled with Geth. A full Geth installation includes the abigen binary. Abigen can also be built independently by navigating to `go-ethereum/cmd/abigen` and running `go build`, or equivalently:
```sh
$ cd $GOPATH/src/github.com/ethereum/go-ethereum
$ go build ./cmd/abigen
go install github.com/ethereum/go-ethereum/cmd/abigen@latest
```
## What is an ABI? {#what-is-an-abi}