This module offers an API wrapper for the blockexplorers from the etherscan.io team.
The APIs from the following explorers are supported at the moment:
- https://etherscan.io
- https://optimistic.etherscan.io/
- https://bscscan.com
- https://polygonscan.com
- https://ftmscan.com
package main
import (
"context"
xscan "github.com/0xTrackerApp/0xScan"
)
func main() {
// create empty context interface
ctx := context.Background()
// Create a new client
client := xscan.NewClient(xscan.BscOpts, "<yourApiKey>") // other available options are xscan.EthOpts, xscan.PolygonOpts, etc
_ = client
}
This SDK is released under the MIT-License found in the LICENSE file.