Skip to content

dismad/zebraUtilities

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

124 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ZebraUtilities

Helper scripts for using zebra. Will need a running and synced zebra node installed. See here for more info:

https://zechub.wiki/zebra

Prerequisites

Make sure you are running the latest zebrad for the most up-to-date RPC's!

chmod + x all .sh files and use as needed.

Can access Zebra RPC's using toCurl.shor equivalent.

* blockFoundSummaryZebra.sh                  // Display blocks and tx's as they are mined
* extractSupplyInfoZebra.sh                  // Extract ZEC supply information
* getBlockCount.sh                           // Get current amount of mined blocks (Height)
* getDateFromBlock.sh                        // Get the date/time a given block was mined
* getDateFromTX.sh                           // Get the date/time a given transaction was mined
* getTXfeeII.sh                              // Get the transaction fee of a given txid (updated)
* getType.sh                                 // Get the type of transaction given a txid (old)
* tx_type.sh                                 // Get tye type of transaction given a txid (new)
* listBestBlockTXs.sh                        // List the transactions of the top block
* listBlockTXs.sh                            // List the transactions of a given block
* listBlockFee.sh                            // List the total fees of a given block
* listTXs.sh                                 // List all Tx's in any block interval
* txDetails.sh                               // Display detailed info about any txid
* visualizeMempool.sh                        // View amount/types of txid's in the mempool
* zebraPeers.sh                              // Display connected peers to your node
* viewTurnstileBlock.sh                      // View turnstile data given a block
* viewTurnstileTaddr.sh                      // View turnstile data given a T address
* viewTurnstileTXID.sh                       // View turnstile data given a txid

DEV version

For the latest updates, check out the dev folder. They are changed often

Extract Supply Info

Screenshot_2024-12-07_12-19-54

TX Details

Input a tx:

Screenshot_2025-04-21_17-03-30

Zebra Peers

./zebraPeers.sh

Screenshot_2024-08-31_18-58-02

Visualize Mempool

You need the following scripts in a folder:

toCurl.sh
getType.sh
txDetails.sh
getTXfee.sh
inMempool.sh
visualizeMempool.sh

Then run ./visualizeMempool.sh

Screenshot_2025-04-21_10-37-54

Block Found Summary

You need the following scripts in a folder:

toCurl.sh
listBlockTXs.sh
txDetails.sh
tx_type.sh
getTXfeeII.sh
drawBlock.sh
blockFoundSummary.sh

Then run ./blockFoundSummary.sh

Screenshot_2025-10-23_21-22-45

List Fees of a given Block

Screenshot_2025-11-18_20-43-11

ListTXs with tx_type / getType

Screenshot_2025-04-21_16-59-38

GetDateFromTX

Screenshot_2024-10-03_11-28-25

Example1

seq 2742068 2743220 | xargs -n1 ./toCurl.sh getblock | jq .difficulty | tee -a myDifficulty.md

Screenshot_2024-12-07_19-32-56

myDiff

Example2

./toCurl.sh getblockchaininfo | jq '.upgrades | to_entries[] | .value.activationheight' | xargs -n1 ./getDateFromBlock.sh

Screenshot_2025-02-13_05-45-08

ViewTurnstileBlock

Example 1

./viewTurnstileBlock.sh 3078839

Screenshot_2025-09-26_15-26-55

Example 2

./viewTurnstileBlock.sh 3078839 true

Screenshot_2025-09-26_15-27-12

About

Scripts to help ride zebras

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages