Velo-Protocol
Searchβ¦
Welcome to Velo-Protocol
π
GETTING STARTED
Prerequisite
Architecture
π
BASE CONCEPTS
DRS Mechanism
Setup stable credit
Mint stable credit
Redeem stable credit
Rebalancing the Reserve and Collateral Pool
π
USING CLI
Using CLI
Setup table credit
Mint stable credit
Redeeming stable credit
Rebalancing the Reserve and Collateral Pool
π
USING SDK
Using SDK
Setup stable credit
Mint stable credit
Redeeming stable credit
Rebalancing the Reserve and Collateral Pool
Powered By
GitBook
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!
USING CLI - Previous
Rebalancing the Reserve and Collateral Pool
Next - USING SDK
Setup stable credit
Last modified
1yr ago
Copy link
Contents
Initialisation