This commit is contained in:
goldsquid
2025-12-13 15:22:51 +07:00
parent 5ac31610f7
commit cfe0b50ae1
7 changed files with 14 additions and 14 deletions

View File

@@ -15,4 +15,4 @@ request="{\"jsonrpc\":\"2.0\",\"method\":\"eth_getBlockByNumber\",\"params\":[\"
echo "${request}"
curl -s -X POST "${1}" -H "Content-Type: application/json" --data "${request}" | jq -r '.result.number, .result.hash' | gawk '{if (NR==1) print "Block Number:", strtonum($0); else print "Block Hash:", $0}'
curl --ipv4 -s -X POST "${1}" -H "Content-Type: application/json" --data "${request}" | jq -r '.result.number, .result.hash' | gawk '{if (NR==1) print "Block Number:", strtonum($0); else print "Block Hash:", $0}'