Skip to content

Instantly share code, notes, and snippets.

@MosheStauber
MosheStauber / eth_token_marketcap.py
Created Mar 14, 2021
Script to get total ethereum market cap - including the marketcap of all tokens on Ethereum!
View eth_token_marketcap.py
"""
Script to get total ethereum market cap - including the marketcap of all tokens on Ethereum!
Script expects existence of API_KEY in environment vars for coinmarketcap api
---
Output from last run on 2021-03-14:
Retrieved 4328 cryptocurrencies
Retrieved 2693 Ethereum tokens
Total token market cap: $192,452,534,460.19403
Total Ethereum market cap: $217,180,649,459.69635
View css-layout-hack.js
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var elements = document.body.getElementsByTagName('*');
var items = [];
for (var i = 0; i < elements.length; i++) {
if (elements[i].innerHTML.indexOf('* { background:#000!important;color:#0f0!important;outline:solid #f00 1px!important; background-color: rgba(255,0,0,.2) !important; }') != -1) {
items.push(elements[i]);
}
}
View top1000_function_count.json
{
"__address0__": 1,
"__address1__": 1,
"__address2__": 1,
"__address3__": 1,
"__address4__": 1,
"__approve": 2,
"__callback": 6,
"__transferfromwithreference": 2,
"__transferwithreference": 2,
View ercxxx_function_count.json
{'erc20compatible': ['0chain_(ZCN)__413',
'0xBitcoin_Token_(0xBTC)__485',
'0xcert_Protocol_Token_(ZXC)__608',
'1World_(1WO)__550',
'20-footEqvUnit_(TEU)__921',
'300_Token_(300)__840',
'4NEW_(KWATT)__779',
'AB-CHAIN_RTB_token_(RTB)__738',
'ABX_Token_(ABX)__682',
'Abyss_(ABYSS)__249',
View ercxxx_distribution.py
import json
import os
from collections import defaultdict
from json import JSONDecodeError
from pprint import pprint
from typing import Dict, Union, List
import requests
from bs4 import BeautifulSoup
View genesis_public_key
040ca7b1ec7cbb741c1e9a23db3dc0d65ed8f9353cb5d46f08b740ecc16455a56a6aa09217a1aececa60910683cae1b6fab508118b0fe93540a02f95b863a30586;p1g1n
View rinkeby testnet
0x20566c6a1D84966330c4E43819C6D9A4684f8939