From c95917f7890f6e91f30a88b47dc47f06f9523cbf Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 5 Aug 2022 00:00:29 -0400 Subject: [PATCH] *Add get_methods to the misc chain --- src/rpc/misc.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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;