Allowance
get allowance of erc20 token
warning
It requires connected wallet.
func Allowance(contractAddress, owner, spender string) (*big.Int, error)
func main() {
// ... setup ...
allowance, err := w.ERC20().Allowance("<contractAddress>", "<ownerAddress>", "<spenderAddress>")
if err != nil {
panic(err)
}
fmt.Println(allowance)
}