diff options
Diffstat (limited to 'lib/utils.ts')
| -rw-r--r-- | lib/utils.ts | 4 |
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(); |
