*Add get_methods to the misc chain
This commit is contained in:
parent
ec649d2d93
commit
c95917f789
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue