Files
neoromantique-dotfiles/scripts/erc20balance.sh
David Aizenberg 3e24926114 .
2020-12-19 20:51:09 +04:00

5 lines
191 B
Bash
Executable File

#/bin/bash
source ~/.secrets/ethplorer.api
USDT=$(curl -s "https://api.ethplorer.io/getAddressInfo/$ETH_ADDR?apiKey=$ETH_API_KEY" | jq .tokens[0].balance)
echo USDT: $(expr $USDT / 1000000)$