'snap' in this toturial comes from no-where!

is it something which imposes by MetaMask ?

Hi, this tutorial walks you through modifying the template snap. The template snap code is here:

The snap variable is injected by MetaMask in the snap environment. When you are writing your snap, you can use the snap variable with methods in the Snaps API. You can find the various methods here:

1 Like

thx problem solved .