// Creates a json representations of a new open block
// based on input data & signed with private key (>= v8.1).
// Optionally uses work value for block from external source.
// Requires enable_control
Creates a json representations of a new open block
based on input data & signed with private key (>= v8.1).
Optionally uses work value for block from external source.
Requires enable_control
// Creates a json representations of a new open block // based on input data & signed with private key ( > = v8 . 1 ) . // Optionally uses work value for block from external source . // Requires enable_control
func CreateOpenBlock(key, account, representative, source, work string) (map[string]string, error) {
	payload := map[string]interface{}{
		"type":           "open",
		"key":            key,
		"account":        account,
		"representative": representative,
		"source":         source,
	}
	if work != "" {
		payload["work"] = work
	}
	return client.fetchMap("block_create", payload, "")
}
func CreateOpenBlock ( key , account , representative , source , work string ) ( map [ string ] string , error ) { payload := map [ string ] interface { } { " " : " " , " " : key , " " : account , " " : representative , " " : source , } if work != " " { payload [ " " ] = work } return client . fetchMap ( " " , payload , " " ) }
Creates a json representations of a new open block
based on input data & signed with private key (>= v8.1).
Creates a json representations of a new open block based on input data & signed with private key ( > = v8 . 1 ) .