const express = require('express');
const { EVM_CANDIDATE_CONFIG } = require('../config/evmCandidateConfig');

const router = express.Router();

router.get('/', (req, res) => {
  res.json({
    ok: true,
    service: 'aisfor-chain',
    mode: 'canonical-besu-qbft',
    chainId: EVM_CANDIDATE_CONFIG.chainId,
    externalTransfersEnabled: EVM_CANDIDATE_CONFIG.externalTransfersEnabled,
    timestamp: new Date().toISOString()
  });
});

module.exports = router;
