Skip to content

Instantly share code, notes, and snippets.

View msigwart's full-sized avatar

Marten Sigwart msigwart

View GitHub Profile
@msigwart
msigwart / reason.js
Last active July 11, 2022 07:29 — forked from gluk64/reason.js
// This is universal, works with Infura -- set provider accordingly
const ethers = require('ethers')
//const provider = ethers.getDefaultProvider('rinkeby')
const provider = new ethers.providers.JsonRpcProvider(process.env.WEB3_URL)
function hex_to_ascii(str1) {
var hex = str1.toString();
var str = '';
for (var n = 0; n < hex.length; n += 2) {