From 7aa6225b4e19b065d420459278ac62e16384af0a Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Nov 2023 09:22:35 -0500 Subject: [PATCH] feat: add stat method --- src/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.ts b/src/index.ts index 2024a28..3ae0ecc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -50,6 +50,9 @@ export class S5Client extends NetworkClient { public async cat(cid: string) { return this.callModuleReturn("cat", { cid }); } + public async stat(cid: string) { + return this.callModuleReturn("stat", { cid }); + } } export const createClient = factory(S5Client, MODULE);