#NEWLINE# def broadcast_transaction( self , hex_tx ) : #NEWLINE# #INDENT# ' Dispatch a raw transaction to the network.\n        ' #NEWLINE# resp = self . obj . sendrawtransaction ( hex_tx ) #NEWLINE# if ( len ( resp ) > 0 ) : #NEWLINE# #INDENT# return { #NEWLINE# #INDENT# 'transaction_hash' : resp , #NEWLINE# 'success' : True , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return error_reply ( 'Invalid response from bitcoind.' )