1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import process from "node:process";
export const getWallets = (async () => {
const { createClient } = await import("npm:@supabase/supabase-js");
const supabase = createClient(
process.env.SUPABASE_URL,
process.env.SUPABASE_ANON_KEY,
);
const { data: wallets, error } = await supabase
.from("wallets")
.select("*");
if (error)
return error;
return wallets;
})();