diff --git a/content/api/resources/transactions/single.mdx b/content/api/resources/transactions/single.mdx index 895278f76..cf08b8ba3 100644 --- a/content/api/resources/transactions/single.mdx +++ b/content/api/resources/transactions/single.mdx @@ -53,6 +53,30 @@ server }); ``` +```go +package main + +import ( + "fmt" + "log" + + "github.com/stellar/go/clients/horizonclient" +) + +func main() { + client := horizonclient.DefaultPublicNetClient + + resp, err := client.TransactionDetail( + "5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc", + ) + if err != nil { + log.Fatal(err) + return + } + fmt.Println(resp) +} +``` +