kernel-eth-client/dist/client.js

12 lines
405 B
JavaScript
Raw Normal View History

2023-03-27 12:55:41 +00:00
import { Client, factory } from "@lumeweb/libkernel-universal";
const RPC_MODULE = "AAAkzekB6FeX9sW2oBKOZ32G_2oU2oQWJIE9Iv4p6xBVGw";
export class EthClient extends Client {
async ready() {
return this.callModuleReturn("ready");
}
async method(method, params) {
return this.callModuleReturn("method", params);
}
}
export const createClient = factory(EthClient, RPC_MODULE);