Skip to content

Instantly share code, notes, and snippets.

@cryppadotta
Last active September 1, 2021 15:38
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cryppadotta/375dee1903598f5163e2c1d7d3ce9db9 to your computer and use it in GitHub Desktop.
Save cryppadotta/375dee1903598f5163e2c1d7d3ce9db9 to your computer and use it in GitHub Desktop.
Apparate
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