Using SDK
Using Go SDK in your project
Last updated
Was this helpful?
Using Go SDK in your project
Last updated
Was this helpful?
Was this helpful?
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.
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()
}()
// ...
}