#NEWLINE# def get_balance( self , crypto , address , confirmations = 1 ) : #NEWLINE# #INDENT# url = ( '%s/api/address/balance/%s' % ( self . domain . format ( coin = self . _get_coin ( crypto ) ) , address ) ) #NEWLINE# r = self . get_url ( url ) . json ( ) #NEWLINE# if ( 'error' in self ) : #NEWLINE# #INDENT# raise Exception ( ( 'Mintr returned error: %s' % r [ 'error' ] ) ) #NEWLINE# #UNINDENT# return float ( r [ 'balance' ] )