Learn how to send Bitcoin using Supabase Edge Functions.
/supabase/functions/zbd-send
folder structure in your project.
ZBD_API_KEY
with your own ZBD Project’s API key.
--no-verify-jwt
flag to the command to disable JWT verification. This is because we are not passing a JWT token to the function when we call it. This is not recommended for production use.
Supabase CLI will output a HTTP URL endpoint that you can use to test your function by issuing a POST request to that resource.
https://xxxxxxxxxxxxx.supabase.co/functions/v1/zbd-send
should return a JSON response with the payment sent message.
You can also test this using curl command:
status
of completed
to know that the payment settled successfully.
processing
. This is expected — use the callbackUrl
property to receive updates about your payments.