Last active
September 1, 2021 15:38
-
-
Save cryppadotta/375dee1903598f5163e2c1d7d3ce9db9 to your computer and use it in GitHub Desktop.
Apparate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0x0b8eb29d7a592023b5330fd9a93299bca2a9604aaa2494c87333fc56da50ec9e"],"id":67}' https://cloudflare-eth.com/ | jq -r '.result.input' | cut -c 139- | xxd --plain --reverse | head -n 297 > decoder.ts | |
npm init -y | |
npm install ethers@5.0.26 yargs@16.1.0 chalk@4.1.0 ora@5.3.0 ts-node@9.0.0 typescript@4.0.5 bson@4.4.0 sharp@0.28.3 parse-numeric-range@1.2.0 mkdirp@1.0.4 @types/yargs @types/node | |
./node_modules/.bin/ts-node ./decoder.ts --wizards "0-9,13,123" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment