public function getNotConfirmedTxs($toAddress, $confidenceThreshold)
    {
        $txs = $this->blockIo->get_transactions(
                        ['addresses' => $toAddress, 'type' => 'received']
                    )->data->txs;

        $txs = array_where($txs, function ($value) use ($confidenceThreshold) {
            if ($value->confidence < $confidenceThreshold
                        && $value->from_green_address == true) {
                return $value;
            } elseif ($value->confidence < $confidenceThreshold
                        || ($value->from_green_address == false
                        && $value->confirmations < 3)) {
                return $value;
            }
        });

        return $txs;
    }