Skip to content

Commit fee45c9

Browse files
committed
doc: amend Chinese README
1 parent c01ef7f commit fee45c9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README_ZH.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,16 @@ import (
2424
func main() {
2525
// 创建连接指定网络的客户端
2626
client := etherscan.New(etherscan.Mainnet, "[your API key]")
27-
27+
28+
// 或者,如果你要调用的是EtherScan家族的BscScan:
29+
//
30+
// client := etherscan.NewCustomized(etherscan.Customization{
31+
// Timeout: 15 * time.Second,
32+
// Key: "You key here",
33+
// BaseURL: "https://api.bscscan.com/api?",
34+
// Verbose: false,
35+
// })
36+
2837
// (可选)按需注册钩子函数,例如用于速率控制
2938
client.BeforeRequest = func(module, action string, param map[string]interface{}) error {
3039
// ...

0 commit comments

Comments
 (0)