// Creates a json representations of a new change block (>= v8.1).
// Optionally uses work value for block from external source.
// Requires enable_control
Creates a json representations of a new change block (>= v8.1).
Optionally uses work value for block from external source.
Requires enable_control
// Creates a json representations of a new change block ( > = v8 . 1 ) . // Optionally uses work value for block from external source . // Requires enable_control
func CreateChangeBlock(wallet, account, representative, previous, work string) (map[string]string, error) {
	payload := map[string]interface{}{
		"type":           "change",
		"wallet":         wallet,
		"account":        account,
		"representative": representative,
		"previous":       previous,
	}
	if work != "" {
		payload["work"] = work
	}
	return client.fetchMap("block_create", payload, "")
}
func CreateChangeBlock ( wallet , account , representative , previous , work string ) ( map [ string ] string , error ) { payload := map [ string ] interface { } { " " : " " , " " : wallet , " " : account , " " : representative , " " : previous , } if work != " " { payload [ " " ] = work } return client . fetchMap ( " " , payload , " " ) }
Creates a json representations of a new change block (>= v8.1).
Creates a json representations of a new change block ( > = v8 . 1 ) .