Skip to content

Instantly share code, notes, and snippets.

View MrHell0's full-sized avatar

Mr Hello MrHell0

  • The Biltmore Estate
View GitHub Profile
@MrHell0
MrHell0 / tunnel.js
Last active February 4, 2024 05:59
tunnel to avalanchego node
#!/usr/bin/env node
# this script creates a tunnel from localhost:9650 to your avalanchego node
const fs = require('fs');
const readFileSync = fs.readFileSync;
// npm install -g tunnel-ssh
const tunnelSsh = require("tunnel-ssh");
async function main() {
if (process.argv.length < 3) {
#!/usr/bin/env node
// requires installing node-fetch `npm install node-fetch`
const fetch = require('node-fetch');
const myNodeId = 'NodeID-Hdc3Czu3AzW5rHvSAyLztNevu6bDNoKqo';
async function main() {
const body = `{
"jsonrpc":"2.0",
//SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;
contract Verifier {
mapping (address => bool) public whitelist;
constructor() {
whitelist[0x9FbB01206477cb3B063213528c2FF36B5b8e5609] = true;