// Sets the representative for account in wallet.
// If provided, uses work value for block from external source (>= v8.1).
// Returns the change block.
// Requires enable_control.
Sets the representative for account in wallet.
If provided, uses work value for block from external source (>= v8.1).
Returns the change block.
Requires enable_control.
// Sets the representative for account in wallet . // If provided uses work value for block from external source ( > = v8 . 1 ) . // Returns the change block . // Requires enable_control .
func SetAccountRepresentative(wallet, account, representative, work string) (string, error) {
	payload := map[string]interface{}{
		"wallet":         wallet,
		"account":        account,
		"representative": representative,
	}
	if work != "" {
		payload["work"] = work
	}
	return client.fetchString("account_representative_set", payload, "block")
}
func SetAccountRepresentative ( wallet , account , representative , work string ) ( string , error ) { payload := map [ string ] interface { } { " " : wallet , " " : account , " " : representative , } if work != " " { payload [ " " ] = work } return client . fetchString ( " " , payload , " " ) }
Sets the representative for account in wallet.
Sets the representative for account in wallet .