The inscription is a hybrid of 'Tao Kuang tung pao' and 'Hsiang Fu yuan pao', here mostly the latter. This is a low melt Indonesian temple token/ funerary cash. They were purpose made, usually of lead, but also mixtures with zinc and tin, or leaded bronze. Some were painted gold or yellow, which is what this piece looks like.
I can only find fragmentary information about them, and have to piece it together. They aren't very old, maybe 1850-1950. Could be even newer. They imitate cash in circulation in the late 19th and early 20th century, mostly Ching from Kang-hsi forward. This Hsiang-fu hybrid is pretty common.
They merge into shima-sen at the fringe, but Japanese collectors spurn them. They are associated with old buried fire pits, especially on beaches. The implication being they were used instead of regular cash because they would be destroyed in a fire. Wartime zinc coins (for their pyrotechnic effects) and other shima sen are also found in these charcoal pits.
This piece is unusually worn, and pretty clearly shows remains of a yellow and filed-metal coating. None of mine have that.
Nowadays there are still roadside shrines equipped with coin operated machines which stamp out very crude approximations of Chien-lung cash, from sheet steel, to donate.