kernel-eth-client/src/client.ts

15 lines
428 B
TypeScript
Raw Normal View History

2023-03-27 12:54:11 +00:00
import { Client, factory } from "@lumeweb/libkernel-universal";
2023-04-17 03:29:19 +00:00
const RPC_MODULE = "AABzXaYbh-KuCx3ZUUz-oeeMQsZb3kR1BbYSQ-8LSsBmAA";
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
}
}
export const createClient = factory<EthClient>(EthClient, RPC_MODULE);