aboutsummaryrefslogtreecommitdiffstats
path: root/lib/utils.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-11-26 22:36:59 -0800
committerAdam Soltys <[email protected]>2026-02-06 08:58:10 -0800
commitbc953b56f3908e3a557976b9029b617dad751755 (patch)
tree6e65399fd615c6cf5c7e9382b212a707531e4886 /lib/utils.ts
parente95e3b8e35a858cc200de6c0b74e3e172e4f6d6e (diff)
downloadcoinos-server-bc953b56f3908e3a557976b9029b617dad751755.tar.gz
coinos-server-bc953b56f3908e3a557976b9029b617dad751755.zip
ark
Diffstat (limited to 'lib/utils.ts')
-rw-r--r--lib/utils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/utils.ts b/lib/utils.ts
index add09782..878ef037 100644
--- a/lib/utils.ts
+++ b/lib/utils.ts
@@ -47,6 +47,10 @@ export const bip21 = (address, { amount, memo, tip, type }) => {
return `${network}:${address}?${url.toString()}`;
};
+export const getAccount = async (id) => {
+ return g(`account:${id}`);
+}
+
export const getUser = async (username, fields = undefined) => {
if (username === "undefined") fail("invalid user");
const k = username?.replace(/\s/g, "").toLowerCase();