Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Add Go Code to Retrieve Transactions for a Claimable Balance API #530

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions content/api/resources/claimablebalances/transactions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,30 @@ server
});
```

```go
package main

import (
"fmt"
"log"

"github.com/stellar/go/clients/horizonclient"
)

func main() {
client := horizonclient.DefaultPublicNetClient
transactionRequest := horizonclient.TransactionRequest {
ForClaimableBalance: "00000000178826fbfe339e1f5c53417c6fedfe2c05e8bec14303143ec46b38981b09c3f9",
}
resp, err := client.Transactions(transactionRequest)
if err != nil {
log.Fatal(err)
return
}
fmt.Println(resp)
}
```

</CodeExample>


Expand Down