public function unconfirmedTransactions($address, $hash = null)
    {
        $params = ["address" => $address];

        if ($hash !== null)
            $params["hash"] = $hash;

        $apiUrl = $this->getPath('unconfirmedTransactions', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $data = json_decode($response, true);
        return $this->createTransactionCollection($object['data']); //XXX brr => error/content validation first
    }
public function unconfirmedTransactions($address, $hash = null)
    {
        $params = ["address" => $address];

        if ($hash !== null)
            $params["hash"] = $hash;

        $apiUrl = $this->getPath('unconfirmedTransactions', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $data = json_decode($response, true);
        return $this->createTransactionCollection($object['data']); //XXX brr => error/content validation first
    }
public function unconfirmedTransactions ( $ address , $ hash = null ) { $ params = [ "address" => $ address ] ; if ( $ hash !== null ) $ params [ "hash" ] = $ hash ; $ apiUrl = $ this -> getPath ( 'unconfirmedTransactions' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ data = json_decode ( $ response , true ) ; return $ this -> createTransactionCollection ( $ object [ 'data' ] ) ; //XXX brr => error/content validation first }
Gets the array of transactions for which an account is the sender or receiver and which have not yet been
included in a block

@param   string  $address    Base32 representation of the account address (T-, N-, M- prefixed addresses).
@param   string  $hash       (Optional) The 256 bit sha3 hash of the transaction up to which transactions are returned.
@return array                Array of object with keys from [TransactionMetaDataPair](https://bob.nem.ninja/docs/#transactionMetaDataPair) objects.
Gets the array of transactions for which an account is the sender or receiver and which have not yet been included in a block