Helper scripts for using zebra. Will need a running and synced zebra node installed. See here for more info:
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
For the latest updates, check out the dev folder. They are changed often
Input a tx:
./zebraPeers.sh
You need the following scripts in a folder:
toCurl.sh
getType.sh
txDetails.sh
getTXfee.sh
inMempool.sh
visualizeMempool.sh
Then run ./visualizeMempool.sh
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
seq 2742068 2743220 | xargs -n1 ./toCurl.sh getblock | jq .difficulty | tee -a myDifficulty.md
./toCurl.sh getblockchaininfo | jq '.upgrades | to_entries[] | .value.activationheight' | xargs -n1 ./getDateFromBlock.sh
./viewTurnstileBlock.sh 3078839
./viewTurnstileBlock.sh 3078839 true








