use history to determine if the wallet has been used
more json formatting