base_uri . $txhash; $content = (new Curl())->get($uri, true); $result = json_decode($content, true); if ($result) { if (isset($result['confirmations']) && $result['confirmations'] > 0) { return $this->StatusReturn(self::TRANS_OK); } else { return $this->StatusReturn(self::TRANS_PADDING); } } return $this->StatusReturn(self::ERROR, $content); } }