*Add get_methods to the misc chain

This commit is contained in:
Derrick Hammer 2022-08-05 00:00:29 -04:00
parent ec649d2d93
commit c95917f789
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 7 additions and 2 deletions

View File

@ -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;