A treasure hunt that spanned much of the northeast before being narrowed to Massachusetts has turned up gold.