Here is a comprehensive tutorial on creating a block from scratch. It’s fairly advanced and touches a lot of areas. The tutorial is from Ron Huereca and he chose a Gravatar block as an example to demonstrate REST calls and saving attributes.

How to Create a Custom Gutenberg Gravatar Block
Ronald Huereca @ dlxplugins.com • 11 months ago