diff --git a/src/rpc/misc.ts b/src/rpc/misc.ts index c9adc44..0c77053 100644 --- a/src/rpc/misc.ts +++ b/src/rpc/misc.ts @@ -1,7 +1,12 @@ -import { RpcMethodList, validateChain } from "./index.js"; +import { RpcMethodList, rpcMethods, validateChain } from "./index.js"; + +const CHAIN = "misc"; export default { - ping: validateChain("misc", async () => { + ping: validateChain(CHAIN, async () => { return { pong: true }; }), + get_methods: validateChain(CHAIN, async () => { + return Object.keys(rpcMethods); + }), } as RpcMethodList;