#NEWLINE# def get_unspent_outputs( self , crypto , address ) : #NEWLINE# #INDENT# url = ( '%s/addresses/%s/unspents' % ( self . base_url , address ) ) #NEWLINE# transactions = [ ] #NEWLINE# for tx in self . get_url ( url ) . json ( ) : #NEWLINE# #INDENT# if ( address in tx [ 'addresses' ] ) : #NEWLINE# #INDENT# transactions . append ( dict ( amount = tx [ 'value' ] , address = address , output = ( '%s:%s' % ( tx [ 'transaction_hash' ] , tx [ 'output_index' ] ) ) , confirmations = tx [ 'confirmations' ] ) ) #NEWLINE# #UNINDENT# #UNINDENT# return transactions