@@ -0,0 +1,943 @@
+#!/usr/bin/env python3%0A#%0A# Connect to lots of servers and broadcast a given tx to each.%0A%0Aimport sys%0Aimport asyncio%0A%0Afrom electrum.network import filter_protocol, Network%0Afrom electrum.util import create_and_start_event_loop, log_exceptions%0Afrom electrum.simple_config import SimpleConfig%0A%0A%0Atry:%0A    rawtx = sys.argv%5B1%5D%0Aexcept:%0A    print(%22usage: txbroadcast rawtx%22)%0A    sys.exit(1)%0A%0Aconfig = SimpleConfig()%0A%0Aloop, stopping_fut, loop_thread = create_and_start_event_loop()%0Anetwork = Network(config)%0Anetwork.start()%0A%0A@log_exceptions%0Aasync def f():%0A    try:%0A        peers = await network.get_peers()%0A        peers = filter_protocol(peers)%0A        results = await network.send_multiple_requests(peers, 'blockchain.transaction.broadcast', %5Brawtx%5D)%0A        for server, resp in results.items():%0A            print(f%22result: server=%7Bserver%7D, response=%7Bresp%7D%22)%0A    finally:%0A        stopping_fut.set_result(1)%0A%0Aasyncio.run_coroutine_threadsafe(f(), loop)%0A

add script that broadcasts tx to lots of servers