From f6afea3e254462a68bffad094d44d709a3095007 Mon Sep 17 00:00:00 2001 From: Abhimanyu Paldiwal Date: Fri, 6 Aug 2021 23:16:44 -0700 Subject: [PATCH] Update strict-send.mdx --- .../api/aggregations/paths/strict-send.mdx | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/content/api/aggregations/paths/strict-send.mdx b/content/api/aggregations/paths/strict-send.mdx index 7bbba5dd9..69a4b207a 100644 --- a/content/api/aggregations/paths/strict-send.mdx +++ b/content/api/aggregations/paths/strict-send.mdx @@ -74,6 +74,34 @@ server }); ``` +```go +package main + +import ( + "fmt" + "github.com/stellar/go/clients/horizonclient" + "log" +) + +func main() { + client := horizonclient.DefaultPublicNetClient + pathRequest := horizonclient.StrictSendPathsRequest { + DestinationAccount: "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA", + SourceAssetType: horizonclient.AssetType4, + SourceAssetCode: "BRL", + SourceAssetIssuer: "GDVKY2GU2DRXWTBEYJJWSFXIGBZV6AZNBVVSUHEPZI54LIS6BA7DVVSP", + SourceAmount: "400", + } + + resp, err := client.StrictSendPaths(pathRequest) + if err != nil { + log.Fatal(err) + return + } + fmt.Println(resp) +} +``` +