#NEWLINE# def get_optimal_fee( self , crypto , tx_bytes ) : #NEWLINE# #INDENT# url = ( 'https://api.blockcypher.com/v1/%s/main' % crypto ) #NEWLINE# fee_kb = self . get_url ( url ) . json ( ) [ 'high_fee_per_kb' ] #NEWLINE# return int ( ( ( tx_bytes * fee_kb ) / 1024.0 ) )