import { respond } from './rpc_utils.js';

const chainSpec_v1_chainName = async (con, req, { source }) => {
  con.send(respond(req, (await source.getChainSpecData()).name));
};
const chainSpec_v1_genesisHash = async (con, req, { source }) => {
  con.send(respond(req, (await source.getChainSpecData()).genesisHash));
};
const chainSpec_v1_properties = async (con, req, { source }) => {
  con.send(respond(req, (await source.getChainSpecData()).properties));
};

export { chainSpec_v1_chainName, chainSpec_v1_genesisHash, chainSpec_v1_properties };
//# sourceMappingURL=chainSpec_v1.js.map
