go install: abigen

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

View file

@ -22,8 +22,7 @@ Ethereum smart contracts have a schema that defines its functions and return typ
Geth includes a source code generator called `abigen` that can convert Ethereum ABI definitions into easy to use, type-safe Go packages. With a valid Go development environment set up and the go-ethereum repository checked out correctly, `abigen` can be built as follows:
```sh
$ cd $GOPATH/src/github.com/ethereum/go-ethereum
$ go build ./cmd/abigen
go install github.com/ethereum/go-ethereum/cmd/abigen@latest
```
### Generating the bindings {#generating-bindings}