Using SDK

Using Go SDK in your project

When using SDK, the client will make a request to Velo Node and response with a Stellar Transaction. The SDK will then submit it to Stellar.

At the moment, only have SDK available for Go Lang

Initialisation

Import the SDK into your project path.

github.com/velo-protocol/DRSv1/client
package main
import "github.com/velo-protocol/DRSv1/client"
func main() {
// ...
// Init Velo SDK client
client, err := vclient.NewDefaultTestNetClient("testnet-drsv1-0.velo.org", "<SECRET KEY>")
if err != nil {
log.Println(err)
return
}
defer func() {
_ = client.Close()
}()
// ...
}