public function getConfidence($txhash, $params = array(), $apiContext = null, $restCall = null)
    {
        ArgumentValidator::validate($txhash, 'txhash');
        ArgumentGetParamsValidator::validate($params, 'params');
        $allowedParams = array();
        $params = ArgumentGetParamsValidator::sanitize($params, $allowedParams);

        $payLoad = "";

        $chainUrlPrefix = $this->getChainUrlPrefix($apiContext);

        $json = $this->executeCall(
            "$chainUrlPrefix/txs/$txhash/confidence" . http_build_query(array_intersect_key($params, $allowedParams)),
            "GET",
            $payLoad,
            null,
            $apiContext,
            $restCall
        );
        $txConfidence = new TXConfidence();
        $txConfidence->fromJson($json);
        return $txConfidence;
    }