diff --git a/content/api/resources/ledgers/single.mdx b/content/api/resources/ledgers/single.mdx index 14fb96491..e6b299113 100644 --- a/content/api/resources/ledgers/single.mdx +++ b/content/api/resources/ledgers/single.mdx @@ -51,6 +51,29 @@ server }); ``` +```go +package main + +import ( + "fmt" + "log" + + "github.com/stellar/go/clients/horizonclient" +) + +func main() { + client := horizonclient.DefaultPublicNetClient + sequence := uint32(69858) + + resp, err := client.LedgerDetail(sequence) + if err != nil { + log.Fatal(err) + return + } + fmt.Println(resp) +} +``` +