code: def broadcast_transaction(hex_tx, blockchain_client):
      
      if isinstance(blockchain_client, BitcoindClient):
          bitcoind = blockchain_client.bitcoind
      elif isinstance(blockchain_client, AuthServiceProxy):
          bitcoind = blockchain_client
      else:
          raise Exception('A BitcoindClient object is required')
  
      try:
          resp = bitcoind.sendrawtransaction(hex_tx)
      except httplib.BadStatusLine:
          raise Exception('Invalid HTTP status code from bitcoind.')
  
      if len(resp) > 0:
          return {'tx_hash': resp, 'success': True}
      else:
          raise Exception('Invalid response from bitcoind.')
docs: Dispatch a raw transaction to the network.