While the official explorer offers raw transaction broadcasting feature (a link at the right bottom of the page), sometimes the transaction can be so large that it can’t even accept:
In this case, ElectrumG is another choice if you don’t have a running full node.
To do this, you need to:
-
Enable console by “View > Show Console”
-
Assuming you have stored the raw transaction (hex) in
/tmp/tx.txt
, execute the following code:
>> rawtx = open('/tmp/tx.txt').read()
>> broadcast(rawtx)
ElectrumG’s console is actually a pure Python interactive shell with BTG related functions exported. There are tons of interesting tools offered by ElectrumG. Check the documentation page and also try help()
to learn more.