diff --git a/src/index.ts b/src/index.ts index de3bf7c..2024a28 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,7 @@ import { factory, NetworkClient } from "@lumeweb/libkernel/module"; import type { SignedRegistryEntry } from "@lumeweb/libs5"; -export const MODULE = - "zrjLjKVByzt233rfcjWvTQXrMfGFa11oBLydPaUk7gwnC2d"; +export const MODULE = "zrjLjKVByzt233rfcjWvTQXrMfGFa11oBLydPaUk7gwnC2d"; export interface RegistryEntry { key: Uint8Array; @@ -47,6 +46,10 @@ export class S5Client extends NetworkClient { end(); }; } + + public async cat(cid: string) { + return this.callModuleReturn("cat", { cid }); + } } export const createClient = factory(S5Client, MODULE);