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