#!/bin/sh # # Requires curl and jq type curl || { echo "curl binary is missing."; exit 1; } type jq || { echo "jq binary is missing."; exit 1; } printf "Timestamp: "; date +%s { curl 'https://graphql.bitquery.io/' -s \ -H 'Connection: keep-alive' \ -H 'sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"' \ -H 'Accept: application/json' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36' \ -H 'X-API-KEY: BQYvhnv04csZHaprIBZNwtpRiDIwEIW9' \ -H 'Content-Type: application/json' \ -H 'Origin: https://graphql.bitquery.io' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Referer: https://graphql.bitquery.io/ide' \ -H 'Accept-Language: en-US,en;q=0.9' \ -H 'Cookie: _gid=GA1.2.827133560.1615807647; mysession=eyJhY3RpdmUiOm51bGx9; mysession.sig=CERRPudKqE7Ttq402aGp3qRHs4A; _ga=GA1.1.408542227.1615807647; _ga_J5F4SQLVDZ=GS1.1.1615807714.1.1.1615807926.0' \ --data-raw '{"query":"{\n ethereum {\n transactions {\n gasValue\n }\n transfers(\n currency: {is: \"ETH\"}\n sender: {is: \"0x0000000000000000000000000000000000000000\"}\n ) {\n amount\n }\n }\n}\n\n\n","variables":"{}"}' \ --compressed curl 'https://graphql.bitquery.io/' -s \ -H 'Connection: keep-alive' \ -H 'sec-ch-ua: "Chromium";v="88", "Google Chrome";v="88", ";Not A Brand";v="99"' \ -H 'Accept: application/json' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36' \ -H 'X-API-KEY: BQYvhnv04csZHaprIBZNwtpRiDIwEIW9' \ -H 'Content-Type: application/json' \ -H 'Origin: https://graphql.bitquery.io' \ -H 'Sec-Fetch-Site: same-origin' \ -H 'Sec-Fetch-Mode: cors' \ -H 'Sec-Fetch-Dest: empty' \ -H 'Referer: https://graphql.bitquery.io/ide' \ -H 'Accept-Language: en-US,en;q=0.9' \ -H 'Cookie: _gid=GA1.2.827133560.1615807647; mysession=eyJhY3RpdmUiOm51bGx9; mysession.sig=CERRPudKqE7Ttq402aGp3qRHs4A; _ga=GA1.1.408542227.1615807647; _ga_J5F4SQLVDZ=GS1.1.1615807714.1.1.1615807926.0' \ --data-raw '{"query":"{\n ethereum {\n transfers(\n currency: {is: \"ETH\"}\n height: {is: 0}\n sender: {is: \"0x0000000000000000000000000000000000000000\"}\n receiver: {not: \"0x0000000000000000000000000000000000000000\"}\n ) {\n amount\n }\n }\n}\n","variables":"{}"}' \ --compressed } | jq .data.ethereum.transfers[].amount \ | { cat < /tmp/paste$$ paste -d"=" /tmp/paste$$ - cat <