Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 552 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 552 Bytes

ERC20

This is a package for the ERC20 ABI (Application Binary Interface) for Ethereum tokens.

This was written because I couldn't find one readily available.

Usage

tokenInstance, err := ERC20.NewERC20(contractAddress, clientInstance)

symbol, err := tokenInstance.Symbol(nil)

balance, err := tokenInstance.BalanceOf(nil, accountAddress)

This is just an example, but there's a bunch of methods to an ERC20 token.

Resources

I found the following resource helpful: