From 9410c7197d6e3964b2f5f7ebe87078eb7da588d1 Mon Sep 17 00:00:00 2001 From: Abhimanyu Paldiwal Date: Fri, 6 Aug 2021 16:24:53 -0700 Subject: [PATCH] Update list.mdx --- content/api/resources/transactions/list.mdx | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/content/api/resources/transactions/list.mdx b/content/api/resources/transactions/list.mdx index a7bcd280f..06112edf6 100644 --- a/content/api/resources/transactions/list.mdx +++ b/content/api/resources/transactions/list.mdx @@ -59,6 +59,29 @@ server }); ``` +```go +package main + +import ( + "fmt" + "log" + + "github.com/stellar/go/clients/horizonclient" +) + +func main() { + client := horizonclient.DefaultPublicNetClient + transactionRequest := horizonclient.TransactionRequest {} + + resp, err := client.Transactions(transactionRequest) + if err != nil { + log.Fatal(err) + return + } + fmt.Println(resp) +} +``` +