public function byHash($hash)
    {
        $params = ["hash" => $hash];
        $apiUrl = $this->getPath('get', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createTransactionModel($object['data']); //XXX brr => error/content validation first
    }
public function byHash($hash)
    {
        $params = ["hash" => $hash];
        $apiUrl = $this->getPath('get', $params);
        $response = $this->api->getJSON($apiUrl);

        //XXX include Error checks
        $object = json_decode($response, true);
        return $this->createTransactionModel($object['data']); //XXX brr => error/content validation first
    }
public function byHash ( $ hash ) { $ params = [ "hash" => $ hash ] ; $ apiUrl = $ this -> getPath ( 'get' , $ params ) ; $ response = $ this -> api -> getJSON ( $ apiUrl ) ; //XXX include Error checks $ object = json_decode ( $ response , true ) ; return $ this -> createTransactionModel ( $ object [ 'data' ] ) ; //XXX brr => error/content validation first }
Gets a transaction meta data pair where the transaction hash corresponds
to the said `hash` parameter.
Gets a transaction meta data pair where the transaction hash corresponds to the said hash parameter .