changed find unspent to new function get_unspent