def getInputs(tx):
    """
    The getInputs function is a small helper function that returns
    input addresses for a given transaction
    :param tx: A single instance of a Bitcoin transaction
    :return: inputs, a list of inputs
    """
    inputs = []
    for input_addr in tx['inputs']:
            inputs.append(input_addr['prev_out']['addr'])
    return inputs