const response = await fetch("https://autopay.shakesco.com/can_request", { method: "POST", headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ delegate_address: "0xB808ff0E0F4fC24D0cECeED6014f04ecE5bfca36", network: "137", }), }); const { status } = await response.json(); if (status === "false") { console.log("User must enable requests in Shakesco app"); }
{ "id": 1, "status": "true" }
Verify if payer accepts payment requests
1
137
true
false
status