public function sendFusionTransaction(
        int $threshold,
        int $anonymity,
        array $addresses = null,
        string $destinationAddress = null
    ):JsonResponse {
        $params = [
            'threshold' => $threshold,
            'anonymity' => $anonymity,
        ];

        if (!is_null($addresses)) $params['addresses'] = $addresses;
        if (!is_null($destinationAddress)) $params['destinationAddress'] = $destinationAddress;

        return $this->rpcPost('sendFusionTransaction', $params);
    }
public function sendFusionTransaction(
        int $threshold,
        int $anonymity,
        array $addresses = null,
        string $destinationAddress = null
    ):JsonResponse {
        $params = [
            'threshold' => $threshold,
            'anonymity' => $anonymity,
        ];

        if (!is_null($addresses)) $params['addresses'] = $addresses;
        if (!is_null($destinationAddress)) $params['destinationAddress'] = $destinationAddress;

        return $this->rpcPost('sendFusionTransaction', $params);
    }
public function sendFusionTransaction ( int $ threshold , int $ anonymity , array $ addresses = null , string $ destinationAddress = null ) : JsonResponse { $ params = [ 'threshold' => $ threshold , 'anonymity' => $ anonymity , ] ; if ( ! is_null ( $ addresses ) ) $ params [ 'addresses' ] = $ addresses ; if ( ! is_null ( $ destinationAddress ) ) $ params [ 'destinationAddress' ] = $ destinationAddress ; return $ this -> rpcPost ( 'sendFusionTransaction' , $ params ) ; }
Allows you to send a fusion transaction, by taking funds from selected
addresses and transferring them to the destination address.

@param int         $threshold          Value that determines which outputs will be optimized. Only the outputs,
lesser than the threshold value, will be included into a fusion
transaction. Required.
@param int         $anonymity          Privacy level (a discrete number from 1 to infinity). Level 6 and higher
is recommended. Required.
@param array|null  $addresses          Array of strings, where each string is an address to take the funds from.
Optional.
@param string|null $destinationAddress An address that the optimized funds will be sent to. Valid and existing
in this container address. If container contains only 1 address,
$destinationAddress field can be left empty and the funds are going to be
sent to this address. If $addresses field contains only 1 address,
$destinationAddress can be left empty and the funds are going to be sent
to this address. In the rest of the cases, $destinationAddress field is
mandatory and must contain an address.
@return JsonResponse
Allows you to send a fusion transaction by taking funds from selected addresses and transferring them to the destination address .