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;
    }
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;
    }
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 ; }
Look for incoming transactions, and know when they have been processed.

We can get the number of pending transactions related to an address
by asking for the confidence treshold and the recipient adress as
inputs.

@param $toAddress string Containing comma separated addresses values
@param $confidenceThreshold duble Containing a value between 0 and 1

@return object Contains pending transactions details
Look for incoming transactions and know when they have been processed .