White’s tree frogs have been known to live 23 years in a protected environment such as an aquarium. Their life span in the wild is probably shorter.
Green tree frog in Melbourne Aquarium - YouTube
The smallest suggested enclosure size for a single frog or a pair of Red Eyed Tree Frogs is a twenty gallon ‘tall' aquarium. These frogs are , or tree-dwelling, and need the height rather than the length in an enclosure. Orchid bark or a coconut-fiber based substrate work best.
Northern Pacific Tree (Chorus) Frog - Aquarium of the Pacific
Although White’s treefrogs are inactive during the day, at night they make use of all the room you provide them. Adults require an enclosure no smaller than a standard 20-gallon aquarium. A 30-gallon tall aquarium works for a trio. House maturing juveniles in smaller enclosures, such as a standard 5- or 10-gallon aquarium, so they can find food easily. Good airflow is important for a frog’s long-term health, so use a screen cover to provide plenty of ventilation on any treefrog enclosure.
Hourglass tree frog : Dallas World Aquarium