Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
package main
import ( "fmt" "io/ioutil" "log" "net/http")
func main() { client := &http.Client{} var data = []byte(`{{"method": "call", "params": ["database", "get_random_number_ex", [1, 10, 4, false]], "jsonrpc": "2.0", "id": 1}}`) req, err := http.NewRequest("POST", "http://charlie.peerplays.download/api", data) if err != nil { log.Fatal(err) } resp, err := client.Do(req) if err != nil { log.Fatal(err) } bodyText, err := ioutil.ReadAll(resp.Body) if err != nil { log.Fatal(err) } fmt.Printf("%s\n", bodyText)}

4. Accessing used numbers on the blockchain

This is work in progress and the explorer API will be completed and the details will be updated here.