/abi

Golang package that encodes parameters similarly to Solidity's `abi.encode`

Primary LanguageGoMIT LicenseMIT

abi: Easy to use ABI encoding and decoding functionalities from EVM blockchains

Go Reference Go Report Card Coverage Status Latest Release

Encode to and decode from bytecode easily with abi package. Usage is similar to Solididy's abi.encode, abi.encodePacked, and abi.decode functions.

go get github.com/omnes-tech/abi

At a Glance

Encode functions:

  • Encode
  • EncodePacked
  • EncodeSelector
  • EncodeWithSignature
  • EncodeWithSelector

Decode functions:

  • Decode
  • DecodePacked
  • DecodeWithSignature
  • DecodeWithSelector