Esempio n. 1
0
def unique():
    data = request.json
    contract = data['contract']
    ooi_contracts = data['ooi_contracts']
    e = EtherscanService()
    addresses = e.unique_users(contract, ooi_contracts)
    return AddressSerializer.render_json(addresses)
Esempio n. 2
0
def in_common(contracts):
    li_contracts = list(contracts.split(','))
    e = EtherscanService()
    addresses_in_common = e.addresses_in_common(li_contracts)
    return AddressSerializer.render_json(addresses_in_common)
Esempio n. 3
0
def addresses(contract):
    e = EtherscanService()
    addresses = e.addresses_by_contract(contract)
    return AddressSerializer.render_json(addresses)