@staticmethod
def utxo(rpcconn, addrs, minconf=1, maxconf=9999999, opt=None):
    argAddrs = (addrs if isinstance(addrs, list) else [addrs])
    if (opt == None):
        commands = [['listunspent', minconf, maxconf, argAddrs, True]]
    else:
        commands = [['listunspent', minconf, maxconf, argAddrs, True, opt]]
    utxos = rpcconn.batch_(commands)[0]
    for i in range(len(utxos)):
        cashAddr = utxos[i]['address']
        legacyAddr = convert.to_legacy_address(cashAddr)
        utxos[i]['address'] = legacyAddr
        utxos[i]['cashaddress'] = cashAddr
    return utxos
@staticmethod
def utxo(rpcconn, addrs, minconf=1, maxconf=9999999, opt=None):
    argAddrs = (addrs if isinstance(addrs, list) else [addrs])
    if (opt == None):
        commands = [['listunspent', minconf, maxconf, argAddrs, True]]
    else:
        commands = [['listunspent', minconf, maxconf, argAddrs, True, opt]]
    utxos = rpcconn.batch_(commands)[0]
    for i in range(len(utxos)):
        cashAddr = utxos[i]['address']
        legacyAddr = convert.to_legacy_address(cashAddr)
        utxos[i]['address'] = legacyAddr
        utxos[i]['cashaddress'] = cashAddr
    return utxos