diff --git a/content/api/resources/ledgers/effects.mdx b/content/api/resources/ledgers/effects.mdx index b8f7f3b12..7ada0114c 100644 --- a/content/api/resources/ledgers/effects.mdx +++ b/content/api/resources/ledgers/effects.mdx @@ -60,6 +60,31 @@ server }); ``` +```go +package main + +import ( + "fmt" + "log" + + "github.com/stellar/go/clients/horizonclient" +) + +func main() { + client := horizonclient.DefaultPublicNetClient + effectRequest := horizonclient.EffectRequest { + ForLedger: "0", + } + + resp, err := client.Effects(effectRequest) + if err != nil { + log.Fatal(err) + return + } + fmt.Println(resp) +} +``` +