async def get_unused_derivation_path(self) -> Optional[uint32]:
    '\n        Returns the first unused derivation path by derivation_index.\n        '
    cursor = (await self.db_connection.execute('SELECT MIN(derivation_index) FROM derivation_paths WHERE used=0;'))
    row = (await cursor.fetchone())
    (await cursor.close())
    if ((row is not None) and (row[0] is not None)):
        return uint32(row[0])
    return None
Returns the first unused derivation path by derivation_index.
async def get_unused_derivation_path(self) -> Optional[uint32]:
    '\n        \n        '
    cursor = (await self.db_connection.execute('SELECT MIN(derivation_index) FROM derivation_paths WHERE used=0;'))
    row = (await cursor.fetchone())
    (await cursor.close())
    if ((row is not None) and (row[0] is not None)):
        return uint32(row[0])
    return None