Velo-Protocol
Search…
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

Initialisation

Import the SDK into your project path.
1
github.com/velo-protocol/DRSv2_Evrynet/vclient
Copied!
1
package main
2
​
3
import "github.com/velo-protocol/DRSv2_Evrynet/vclient"
4
​
5
func main() {
6
// ...
7
​
8
// Init Velo SDK client
9
client, err := vclient.NewClient("<evrynet rpc>", "<account private key>", ContractAddress{
10
DrsAddress: "<drs address>",
11
HeartAddress: "<heart address>",
12
})
13
if err != nil {
14
log.Println(err)
15
return
16
}
17
defer func() {
18
_ = client.Close()
19
}()
20
21
// ...
22
}
Copied!
Last modified 1yr ago
Copy link