From 2bd5341dc2b9580ae346cb5eb9b5d8ea4c9803ed Mon Sep 17 00:00:00 2001 From: Abhimanyu Paldiwal Date: Fri, 6 Aug 2021 19:53:25 -0700 Subject: [PATCH] Update single.mdx --- content/api/aggregations/fee-stats/single.mdx | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/content/api/aggregations/fee-stats/single.mdx b/content/api/aggregations/fee-stats/single.mdx index 353e272ef..c5f39e6d4 100644 --- a/content/api/aggregations/fee-stats/single.mdx +++ b/content/api/aggregations/fee-stats/single.mdx @@ -37,6 +37,28 @@ server console.error(err); }); ``` + +```go +package main + +import ( + "fmt" + "log" + + "github.com/stellar/go/clients/horizonclient" +) + +func main() { + client := horizonclient.DefaultPublicNetClient + + resp, err := client.FeeStats() + if err != nil { + log.Fatal(err) + return + } + fmt.Println(resp) +} +```