This file contains hidden or 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
///////////////////////// | |
//Section 1: Coin Value// | |
///////////////////////// | |
//////////////////////////////////////////////////////////////////////////////////////////////// | |
//coin market value lookup (works for all coins, just pass a single coin symbol as a parameter) | |
function getCoinPriceBySymbol(symbol) { | |
var url = 'https://api.coinmarketcap.com/v1/ticker/'; | |
var response = UrlFetchApp.fetch(url); | |
var json = JSON.parse(response.getContentText()); |
This file contains hidden or 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
import time | |
import requests | |
import click | |
from web3 import Web3 | |
def create_message(delegate_address): | |
totp = int(time.time()) // 3600 | |
return delegate_address + str(totp) |