-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Code Lao
committed
Jun 12, 2023
1 parent
54159b1
commit a9887ab
Showing
14 changed files
with
180 additions
and
230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.