Skip to content

Instantly share code, notes, and snippets.

View ckruger097's full-sized avatar

Cameron Kruger ckruger097

  • USA
View GitHub Profile
@ckruger097
ckruger097 / transfer_tokens.go
Created August 20, 2021 01:38
Updated Go file for transferring tokens in goethereumbook
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/accounts/abi/bind"
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/ethclient"
"github.com/metachris/eth-go-bindings/erc20"
"io/ioutil"