Comment on page
Using SDK
Using Go SDK in your project
When using SDK, the client will make a request to Velo Node and response with a Evrynet Transaction. The SDK will then submit it to Evrynet.
At the moment, only have SDK available for Go Lang
Import the SDK into your project path.
github.com/velo-protocol/DRSv2_Evrynet/vclient
package main
import "github.com/velo-protocol/DRSv2_Evrynet/vclient"
func main() {
// ...
// Init Velo SDK client
client, err := vclient.NewClient("<evrynet rpc>", "<account private key>", ContractAddress{
DrsAddress: "<drs address>",
HeartAddress: "<heart address>",
})
if err != nil {
log.Println(err)
return
}
defer func() {
_ = client.Close()
}()
// ...
}