Stacks SDK is used to interact with the Stacks blockchain, it contains various functions can be used to web3 wallet.
To obtain the latest version, simply require the project using :
go get -u github.com/okx/go-wallet-sdk/coins/stacks
priKey := "598d99970d04be67e8b41ddd5c5453487eeab5345ea1638c9a2849dee377f2a301"
addr, err := NewAddress(priKey)
if err != nil {
// todo
}
result, err := Transfer("598d99970d04be67e8b41ddd5c5453487eeab5345ea1638c9a2849dee377f2a3", "SP2P58SJY1XH6GX4W3YGEPZ2058DD3JHBPJ8W843Q", "20", big.NewInt(3000), big.NewInt(8), big.NewInt(200))
if err != nil {
// todo
}
Most packages or folder are MIT licensed, see package or folder for the respective license.