public function getResponse(array $response)
    {
        if (isset($response['error']['code'])) {
            $this->handleRpcErrors($response['error']);
        }

        return isset($response['result']) ? $response['result'] : null;
    }
public function getResponse(array $response)
    {
        if (isset($response['error']['code'])) {
            $this->handleRpcErrors($response['error']);
        }

        return isset($response['result']) ? $response['result'] : null;
    }
public function getResponse ( array $ response ) { if ( isset ( $ response [ 'error' ] [ 'code' ] ) ) { $ this -> handleRpcErrors ( $ response [ 'error' ] ) ; } return isset ( $ response [ 'result' ] ) ? $ response [ 'result' ] : null ; }
Get the response from the server
if there are API error pass them to error handler function

@param array $response
@return null
@throws BadFunctionCallException
@throws InvalidArgumentException
@throws RuntimeException
Get the response from the server if there are API error pass them to error handler function