An open API service indexing awesome lists of open source software.

https://github.com/jon4hz/0xscan

API wrapper for the blockexplorers from the etherscan.io team
https://github.com/jon4hz/0xscan

api-wrapper blockexplorer bscscan etherscan-api fantom go golang polygon

Last synced: 5 months ago
JSON representation

API wrapper for the blockexplorers from the etherscan.io team

Awesome Lists containing this project

README

          

# 0xScan
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/0xTrackerApp/0xScan/blob/master/LICENSE)
[![testing](https://github.com/0xTrackerApp/0xScan/actions/workflows/testing.yml/badge.svg)](https://github.com/0xTrackerApp/0xScan/actions/workflows/testing.yml)

## 💡 About
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

## 🚀 Getting started

### 🧑‍💻 Create a client

```go
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, "") // other available options are xscan.EthOpts, xscan.PolygonOpts, etc

_ = client
}
```

## 📜 Licensing
This SDK is released under the MIT-License found in the [LICENSE](https://github.com/0xTrackerApp/0xScan/blob/master/LICENSE) file.