kernel-eth-client/src/client.ts

11 lines
370 B
TypeScript
Raw Normal View History

import { factory, NetworkClient } from "@lumeweb/libkernel/module";
2023-07-23 18:54:32 +00:00
const MODULE = "zduTaThU2Dzb3iCbo4yeVN9YjoWU7BKzscALiJYXERiccocfKXHSRwG487";
2023-03-27 12:54:11 +00:00
export class EthClient extends NetworkClient {
2023-03-27 12:54:11 +00:00
public async method(method: string, params: any) {
return this.callModuleReturn(method, params);
2023-03-27 12:54:11 +00:00
}
}
2023-07-14 08:34:44 +00:00
export const createClient = factory<EthClient>(EthClient, MODULE);