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
- Host: GitHub
- URL: https://github.com/jon4hz/0xscan
- Owner: jon4hz
- License: mit
- Created: 2021-07-25T15:44:21.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-25T18:11:06.000Z (over 4 years ago)
- Last Synced: 2024-11-08T19:53:15.341Z (over 1 year ago)
- Topics: api-wrapper, blockexplorer, bscscan, etherscan-api, fantom, go, golang, polygon
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 0xScan
[](https://github.com/0xTrackerApp/0xScan/blob/master/LICENSE)
[](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.