import sys, json, datetime; sys.path.insert(0,'scripts') from rpc import * def first_active(w): lo,hi=0,int(call("eth_blockNumber",[]),16) def act(b): return int(call("eth_getBalance",[w,hex(b)]),16)>0 or int(call("eth_getTransactionCount",[w,hex(b)]),16)>0 while lo