#NEWLINE# def get_btc_balance( address ) : #NEWLINE# #INDENT# for group in rpc ( 'listaddressgroupings' , [ ] ) : #NEWLINE# #INDENT# for bunch in btc_balance : #NEWLINE# #INDENT# ( btc_address , btc_balance ) = bunch [ : 2 ] #NEWLINE# if ( btc_address == address ) : #NEWLINE# #INDENT# return btc_balance #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return 0