https://github.com/omnes-tech/go-eth-abi
Golang package that encodes parameters similarly to Solidity's `abi.encode`
https://github.com/omnes-tech/go-eth-abi
abi blockchain evm go golang
Last synced: 8 months ago
JSON representation
Golang package that encodes parameters similarly to Solidity's `abi.encode`
- Host: GitHub
- URL: https://github.com/omnes-tech/go-eth-abi
- Owner: omnes-tech
- License: mit
- Created: 2024-06-01T15:02:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-01T12:01:29.000Z (10 months ago)
- Last Synced: 2025-04-09T00:21:23.015Z (9 months ago)
- Topics: abi, blockchain, evm, go, golang
- Language: Go
- Homepage:
- Size: 45.9 KB
- Stars: 6
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `abi`: Easy to use ABI encoding and decoding functionalities for EVM blockchains
[](https://pkg.go.dev/github.com/omnes-tech/abi)
[](https://goreportcard.com/report/github.com/omnes-tech/abi)
[](https://coveralls.io/github/omnes-tech/abi?branch=main)
[](https://github.com/omnes-tech/abi/releases/latest)
Encode to and decode from bytecode easily with `abi` package. Usage is similar to Solidity's `abi.encode`, `abi.encodePacked`, and `abi.decode` functions.
```shell
go get github.com/omnes-tech/abi
```
## At a Glance
Encode functions:
- `Encode`
- `EncodePacked`
- `EncodeSelector`
- `EncodeWithSignature`
- `EncodeWithSelector`
Decode functions:
- `Decode`
- `DecodePacked`
- `DecodeWithSignature`
- `DecodeWithSelector`