supabase functions new function-name
cd your-project/supabase
supabase start # start the supabase stack
supabase functions serve # start the Functions watcher
curl --request POST 'http://localhost:54321/functions/v1/hello-world' \
--header 'Authorization: Bearer SUPABASE_ANON_KEY' \
--header 'Content-Type: application/json' \
--data '{ "name":"Functions" }'
curl --request POST 'http://localhost:54321/functions/v1/get-nonce' \
--header 'Authorization: Bearer SUPABASE_ANON_KEY' \
--header 'Content-Type: application/json' \
--data '{ "publicAddress":"0x7...d64A" }'
curl --request POST 'http://localhost:54321/functions/v1/divice-binding' \
--header 'Authorization: Bearer SUPABASE_ANON_KEY' \
--header 'Content-Type: application/json' \
--data '{ "publicAddress":"0x7...d64A", "message":"", "signature":"", "publisherName":"" }'
supabase login
supabase functions deploy hello-world