Removed hard coded purpose and coin_type (provided by Wallet.get_address_index)
Only look up address when not a coinbase transaction