You are connected to an ElectrumX 1.16.0 server.
>>> for i in range(20):
    print(wallet.derive_pubkey(False, i))
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'Standard_Wallet' object has no attribute 'derive_pubkey'
>>> for i in range(20):
    addr = wallet.get_receiving_address(i)
    deriv = wallet.get_address_index(addr)
    print(f"{i}: {addr} -> path: m/0/{deriv[1]}")
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'i' is not defined
>>> for i in range(20):
    addr = wallet.get_receiving_address(i)
    deriv = wallet.get_address_index(addr)
    print(f"{i}: {addr} -> path: m/{deriv[0]}/{deriv[1]}")
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'i' is not defined
>>> list(map(lambda i: print(f"{i}: {wallet.get_receiving_address(i)} -> path: m/{wallet.get_address_index(wallet.get_receiving_address(i))[0]}/{wallet.get_address_index(wallet.get_receiving_address(i))[1]}"), range(20)))
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "<string>", line 1, in <lambda>
  File "electrum\wallet.py", line 667, in wrapper
TypeError: Abstract_Wallet.get_receiving_address() takes 1 positional argument but 2 were given
>>> ks = wallet.get_keystore()
for i in range(20):
    addr = ks.derive_pubkey(0, i).to_address()
    print(f"{i}: {addr} -> path: m/0/{i}")
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'i' is not defined
>>> ks = wallet.get_keystore()
def derive_addrs(n):
    for i in range(n):
        pubkey = ks.derive_pubkey(0, i)
        addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
        print(f"{i}: {addr} -> path: m/0/{i}")
derive_addrs(20)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 've_addrs' is not defined
>>> ks = wallet.get_keystore()
def derive_addrs(n):
    for i in range(n):
        pubkey = ks.derive_pubkey(0, i)
        addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
        print(f"{i}: {addr} -> path: m/0/{i}")
derive_addrs(20)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 've_addrs' is not defined
>>> # Create Legacy wallet (P2PKH)
# In Electrum: File → New → Standard → I already have seed
# Choose "legacy" when prompted for script type

# Console commands:
ks = wallet.get_keystore()
def check_legacy_path(start=0, end=50):
    for i in range(start, end):
        pubkey = ks.derive_pubkey(0, i)
        addr = wallet.pubkey_to_address('p2pkh', pubkey)
        balance = wallet.get_addr_balance(addr)
        if balance[0] > 0 or balance[1] > 0:
            print(f"FOUND: {i}: {addr} -> Balance: {balance}")
        else:
            print(f"{i}: {addr} -> Empty")
check_legacy_path()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'k_legacy_path' is not defined
>>> def check_all_paths():
    """Check addresses across different derivation paths"""
    ks = wallet.get_keystore()
    
    # Check current wallet addresses (first 20)
    print("=== CURRENT WALLET ADDRESSES ===")
    for i in range(20):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"{i}: {addr} -> path: m/0/{i}")
        except Exception as e:
            print(f"Error at index {i}: {e}")
            break
    
    print("\n=== CHANGE ADDRESSES ===")
    for i in range(10):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"Change {i}: {addr} -> path: m/1/{i}")
        except Exception as e:
            print(f"Error at change index {i}: {e}")
            break

def find_address(target_addr):
    """Find which derivation path contains the target address"""
    ks = wallet.get_keystore()
    
    print(f"Searching for: {target_addr}")
    print("\n=== CHECKING RECEIVING ADDRESSES ===")
    
    # Check receiving addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/0/{i}: {addr} ***")
                return f"m/0/{i}"
        except Exception as e:
            break
    
    print("\n=== CHECKING CHANGE ADDRESSES ===")
    
    # Check change addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/1/{i}: {addr} ***")
                return f"m/1/{i}"
        except Exception as e:
            break
    
    print("Address not found in current wallet derivation")
    return None

# Run the checker
check_all_paths()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'k_all_paths' is not defined
>>> def check_all_paths():
    """Check addresses across different derivation paths"""
    ks = wallet.get_keystore()
    
    # Check current wallet addresses (first 20)
    print("=== CURRENT WALLET ADDRESSES ===")
    for i in range(20):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"{i}: {addr} -> path: m/0/{i}")
        except Exception as e:
            print(f"Error at index {i}: {e}")
            break
    
    print("\n=== CHANGE ADDRESSES ===")
    for i in range(10):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"Change {i}: {addr} -> path: m/1/{i}")
        except Exception as e:
            print(f"Error at change index {i}: {e}")
            break

def find_address(target_addr):
    """Find which derivation path contains the target address"""
    ks = wallet.get_keystore()
    
    print(f"Searching for: {target_addr}")
    print("\n=== CHECKING RECEIVING ADDRESSES ===")
    
    # Check receiving addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/0/{i}: {addr} ***")
                return f"m/0/{i}"
        except Exception as e:
            break
    
    print("\n=== CHECKING CHANGE ADDRESSES ===")
    
    # Check change addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/1/{i}: {addr} ***")
                return f"m/1/{i}"
        except Exception as e:
            break
    
    print("Address not found in current wallet derivation")
    return None

# Run the checker
check_all_paths()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'k_all_paths' is not defined
>>> def check_all_paths():
    """Check addresses across different derivation paths"""
    ks = wallet.get_keystore()
    
    # Check current wallet addresses (first 20)
    print("=== CURRENT WALLET ADDRESSES ===")
    for i in range(20):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"{i}: {addr} -> path: m/0/{i}")
        except Exception as e:
            print(f"Error at index {i}: {e}")
            break
    
    print("\n=== CHANGE ADDRESSES ===")
    for i in range(10):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"Change {i}: {addr} -> path: m/1/{i}")
        except Exception as e:
            print(f"Error at change index {i}: {e}")
            break

def find_address(target_addr):
    """Find which derivation path contains the target address"""
    ks = wallet.get_keystore()
    
    print(f"Searching for: {target_addr}")
    print("\n=== CHECKING RECEIVING ADDRESSES ===")
    
    # Check receiving addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/0/{i}: {addr} ***")
                return f"m/0/{i}"
        except Exception as e:
            break
    
    print("\n=== CHECKING CHANGE ADDRESSES ===")
    
    # Check change addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/1/{i}: {addr} ***")
                return f"m/1/{i}"
        except Exception as e:
            break
    
    print("Address not found in current wallet derivation")
    return None

# Run the checker
check_all_()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'k_all_' is not defined
>>> def check_all_paths():
    """Check addresses across different derivation paths"""
    ks = wallet.get_keystore()
    
    # Check current wallet addresses (first 20)
    print("=== CURRENT WALLET ADDRESSES ===")
    for i in range(20):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"{i}: {addr} -> path: m/0/{i}")
        except Exception as e:
            print(f"Error at index {i}: {e}")
            break
    
    print("\n=== CHANGE ADDRESSES ===")
    for i in range(10):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"Change {i}: {addr} -> path: m/1/{i}")
        except Exception as e:
            print(f"Error at change index {i}: {e}")
            break

def find_address(target_addr):
    """Find which derivation path contains the target address"""
    ks = wallet.get_keystore()
    
    print(f"Searching for: {target_addr}")
    print("\n=== CHECKING RECEIVING ADDRESSES ===")
    
    # Check receiving addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/0/{i}: {addr} ***")
                return f"m/0/{i}"
        except Exception as e:
            break
    
    print("\n=== CHECKING CHANGE ADDRESSES ===")
    
    # Check change addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/1/{i}: {addr} ***")
                return f"m/1/{i}"
        except Exception as e:
            break
    
    print("Address not found in current wallet derivation")
    return None

# Run the checker
check_paths()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'k_paths' is not defined
>>> def check_all_paths():
    """Check addresses across different derivation paths"""
    ks = wallet.get_keystore()
    
    # Check current wallet addresses (first 20)
    print("=== CURRENT WALLET ADDRESSES ===")
    for i in range(20):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"{i}: {addr} -> path: m/0/{i}")
        except Exception as e:
            print(f"Error at index {i}: {e}")
            break
    
    print("\n=== CHANGE ADDRESSES ===")
    for i in range(10):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            print(f"Change {i}: {addr} -> path: m/1/{i}")
        except Exception as e:
            print(f"Error at change index {i}: {e}")
            break

def find_address(target_addr):
    """Find which derivation path contains the target address"""
    ks = wallet.get_keystore()
    
    print(f"Searching for: {target_addr}")
    print("\n=== CHECKING RECEIVING ADDRESSES ===")
    
    # Check receiving addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(0, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/0/{i}: {addr} ***")
                return f"m/0/{i}"
        except Exception as e:
            break
    
    print("\n=== CHECKING CHANGE ADDRESSES ===")
    
    # Check change addresses (0 to 100)
    for i in range(100):
        try:
            pubkey = ks.derive_pubkey(1, i)
            addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
            if addr == target_addr:
                print(f"*** FOUND at m/1/{i}: {addr} ***")
                return f"m/1/{i}"
        except Exception as e:
            break
    
    print("Address not found in current wallet derivation")
    return None

# Run the checker
check_all_paths()
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'k_all_paths' is not defined
>>> ks = wallet.get_keystore()
def derive_addrs(n):
    for i in range(n):
        pubkey = ks.derive_pubkey(0, i)
        addr = wallet.pubkey_to_address(wallet.txin_type, pubkey)
        print(f"{i}: {addr} -> path: m/0/{i}")
derive_addrs(20)
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 've_addrs' is not defined