Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Code Lao committed Jun 12, 2023
1 parent 54159b1 commit a9887ab
Show file tree
Hide file tree
Showing 14 changed files with 180 additions and 230 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 2.0.0
*2023-06-13*

### NEW VERSION!
### New scanning algorithm. Now you can scan any transaction by entering only 1 command (guide in the README).


# 1.2.1
*2023-04-16*

Expand Down
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,39 @@
<h1 align="center">
Pocket TRC20
</h1>
<p align="center">
<img src="./logo.png" width="75%">
Console Tron Blockchain Scanner
</p>

<h1 align="center">
Crypto Scans
</h1>

* [More info](#more-info)
* [Installation](#installation)
* [Usage](#usage)


## Screenshots
<p>
<img src="https://img.shields.io/badge/Crypto Scans-v1.2.1-red">
<img src="./screenshot1.png" width="100%">
<img src="./screenshot2.png" width="100%">
<img src="./screenshot3.png" width="100%">
<img src="app_images/ptrc20-scanning.png" width="100%">
<img src="app_images/ptrc20-info.png" width="100%">
</p>


## More info
Crypto Scans is a console based TRON blockchain explorer app
It is used for getting details of TRC20 transactions through your computer's terminal
Pocket TRC20 is a console based TRON blockchain scanner.

It is used for getting details of TRC20 transactions just by entering 1 command into the terminal


## Installation
### MacOS/Linux
```
$ git clone https://github.com/codelao/CryptoScans.git
$ cd CryptoScans
$ pip3 install -r requirements.txt
$ cd code
$ python3 main.py
$ cd Pocket-TRC20
```
#### after that you can go to the information menu by using this command:
```
$ bash ptrc20.sh --info
```
#### or you can start scanning transactions by using only 1 command:
```
$ bash ptrc20.sh --hash Trc20TransactionHash
```


## Usage
After running Crypto Scans you can enter any TRC20 transaction hash in the terminal window and you will get the details of this transaction
Binary file added app_images/ptrc20-info.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app_images/ptrc20-scanning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
185 changes: 0 additions & 185 deletions code/main.py

This file was deleted.

Binary file removed logo.png
Binary file not shown.
56 changes: 56 additions & 0 deletions ptrc20.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#!/bin/bash

if ! python3 --version; then
echo -e "\033[31m! App requires Python3 to be installed in your system first\033[0m"
exit 1
else
if ! python3 scripts/check_internet.py; then
echo -e "\033[31m! Check your internet connection and try again\033[0m"
exit 1
else
pip3 install requests colorama termcolor progress
clear
fi
fi


printf " _____ _____ ____ _ _____ _______\n"
printf "( | ( ) | \ | \ /\ ( . \ \_ _/\n"
printf "| - | | | | | /\_/ | |_/ | | ___/ | |\n"
printf "| ---- | | | | \/\ | ( | | | |\n"
printf "| | | | | \ | |-\ \ | |___ | |\n"
printf "|/ (_____) |____/ |_/ \/ (____/ (_)\n"
printf "\033[31m_______ ______ ____ _____ _____\033[0m\n"
printf "\033[31m\_ _/ | __/ | \ / \ ( )\033[0m\n"
printf "\033[31m | | | | | /\_/ \_) / | | |\033[0m\n"
printf "\033[31m | | | | | \/\ / / | | |\033[0m\n"
printf "\033[31m | | | | | \ / (_ | |\033[0m\n"
printf "\033[31m (_) |__/ |____/ (_____) (_____)\033[0m\n"
printf "\n"


info_arg=false
hash_arg=false
key=$1
case $key in
--info)
info_arg=true
;;
-H|--hash)
hash_arg=true
;;
esac

if $info_arg; then
echo -e "\033[1;91mPocket TRC20\033[0m"
echo -e "\033[1;90mv2.0.0\033[0m\n"
echo -e "--info Information menu \033[90m(current)\033[0m"
echo -e "-H, --hash Hash of the TRC20 transaction you want to scan\n"
echo -e "\033[1;93mFor example:\033[0m"
echo -e "\033[90mbash ptrc20.sh --hash 0b9cd40b4a9a36f99ba5c73527633cac6fc83a90563a3c5cf5d079dd2735f8ea\033[0m\n"
elif $hash_arg; then
python3 scripts/scanner.py $@
else
echo -e "\033[31m! Wrong argument or none of them were entered\033[0m"
echo -e "Type \033[90mbash ptrc20.sh --info\033[0m for more information"
fi
5 changes: 0 additions & 5 deletions requirements.txt

This file was deleted.

Binary file removed screenshot1.png
Binary file not shown.
Binary file removed screenshot2.png
Binary file not shown.
Binary file removed screenshot3.png
Binary file not shown.
9 changes: 9 additions & 0 deletions scripts/check_internet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from urllib.request import urlopen


def check_internet_connection(self):
try:
urlopen('https://google.com')
return True
except:
return False
Loading

0 comments on commit a9887ab

Please sign in to comment.