I meant to answer. Were these growing in the ground or above the ground?
They look like puffball mushrooms to me. Most puffballs are edible and really delicious. They are one of the easiest mushrooms to correctly identify.
One species of puffballs is toxic. I can't remember the name, but my husband cooked them up for us one morning and we both ended up in the hospital for a day or two. (My husband, an avid mushroom collector, believed there were no poisonous puffballs because, after all, his mother told him so. Boy, was I mad at him!)
The poisonous ones have a woody texture. They are easy to identify. Do an internet search on puffball mushrooms. As I said the edible ones are very easy to identify. My husband ended up poisoning us both because he honestly didn't believe there was any poisonous puffball mushroom.
The edible ones are really soft and spongy. They can range in size from a tennis ball to almost as big as a basket ball. You have to pick them while the flesh is still firm and white, before it starts to develop spores. The puffball will end up completely dried out and will puff out its spores if you touch it. You cut them up into thick slices and fry them in butter. They are really good. Just be sure they are the edible ones.
I'll get my husband to look at your pictures. Where are you located?