// Returns a map of unchecked synchronizing block hashes and their json
// representation up to count (>= v8.0).
Returns a map of unchecked synchronizing block hashes and their json
representation up to count (>= v8.0).
// Returns a map of unchecked synchronizing block hashes and their json // representation up to count ( > = v8 . 0 ) .
func UncheckedBlocks(count int) (map[string]map[string]string, error) {
	payload := map[string]interface{}{
		"count": count,
	}
	raw, err := client.call("unchecked", payload)
	if err != nil {
		return nil, err
	}
	var r map[string]map[string]map[string]string
	if err = json.Unmarshal(raw, &r); err != nil {
		return nil, err
	}
	blocks, ok := r["blocks"]
	if !ok {
		return nil, errors.New("Response of unchecked has no blocks")
	}
	return blocks, nil
}
func UncheckedBlocks ( count int ) ( map [ string ] map [ string ] string , error ) { payload := map [ string ] interface { } { " " : count , } raw , err := client . call ( " " , payload ) if err != nil { return nil , err } var r map [ string ] map [ string ] map [ string ] string if err = json . Unmarshal ( raw , & r ) ; err != nil { return nil , err } blocks , ok := r [ " " ] if ! ok { return nil , errors . New ( " " ) } return blocks , nil }
Returns a map of unchecked synchronizing block hashes and their json
representation up to count (>= v8.0).
Returns a map of unchecked synchronizing block hashes and their json representation up to count ( > = v8 . 0 ) .