I don't know about tanks, but I know it's safe for trash cans!
I don't recommend duckweed because it can quickly take over a tank and ruin the looks. It gets stuck in plants, filters, and decorations. Sometimes it clogs the filter. It also blocks a lot of light, so if you want to grow other plants you may have trouble.