SuperContract Executions
Requirements
- IDE or text editor
- SuperContract API
- One owner
- One Drive with executors
- One deployed SuperContract
- One finished execution
Example
Client can get all SC executions.
import (
"context"
apihttp "github.com/proximax-storage/go-xpx-dfms-api-http"
)
func main() {
// Create a new client API by given address
client := apihttp.NewClientAPI("127.0.0.1:63666")
// List executions
hashes, err := client.SuperContract().GetSuperContractExecutionsHashes(context.Background())
if err != nil {
panic(err)
}
// print the list of executions
for _, h := range hashes {
println(h)
}
}