How can I get block data

Hi, everyone.
I wanna get block data with wallet API.
My question is similar to this.

Is there any way for it?
Please help me.