kernel-eth-client/src/client.ts

15 lines
429 B
TypeScript
Raw Normal View History

import { Client, factory } from "@lumeweb/libkernel/module";
2023-03-27 12:54:11 +00:00
2023-07-15 09:54:30 +00:00
const MODULE = "zduGLFR8wvd1Su9vtMMfXqevT7EUKeekaehwCJrrU34XjvXE7rce6QjRk3";
2023-03-27 12:54:11 +00:00
export class EthClient extends Client {
public async ready() {
return this.callModuleReturn("ready");
}
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);