Skip to content

Commit c453d3c

Browse files
committed
doc: add description for BscScan(ci skip)
1 parent a4b1b45 commit c453d3c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![GoDoc](https://godoc.org/github.com/nanmu42/etherscan-api?status.svg)](https://godoc.org/github.com/nanmu42/etherscan-api)
77
[中文文档](https://github.com/nanmu42/etherscan-api/blob/master/README_ZH.md)
88

9-
Go bindings to the Etherscan.io API, with nearly Full implementation(accounts, transactions, tokens, contracts, blocks, stats), full network support(Mainnet, Ropsten, Kovan, Rinkby, Tobalaba), and only depending on standard library. :wink:
9+
Go bindings to the Etherscan.io API(and its families like BscScan), with nearly Full implementation(accounts, transactions, tokens, contracts, blocks, stats), full network support(Mainnet, Ropsten, Kovan, Rinkby, Tobalaba), and only depending on standard library. :wink:
1010

1111
# Usage
1212

@@ -22,6 +22,15 @@ func main() {
2222
// create a API client for specified ethereum net
2323
// there are many pre-defined network in package
2424
client := etherscan.New(etherscan.Mainnet, "[your API key]")
25+
26+
// or, if you are working with etherscan-family API like BscScan
27+
//
28+
// client := etherscan.NewCustomized(etherscan.Customization{
29+
// Timeout: 15 * time.Second,
30+
// Key: "You key here",
31+
// BaseURL: "https://api.bscscan.com/api?",
32+
// Verbose: false,
33+
// })
2534

2635
// (optional) add hooks, e.g. for rate limit
2736
client.BeforeRequest = func(module, action string, param map[string]interface{}) error {

0 commit comments

Comments
 (0)