Skip to content

Commit

Permalink
return chain_id
Browse files Browse the repository at this point in the history
  • Loading branch information
rajranjan0608 committed Dec 28, 2023
1 parent 7f00e28 commit 33c8d4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"MAX_LIMIT_CAP": 5000
},
"MAINNET_BALANCE_CHECK_RPC": "https://api.avax.network/ext/C/rpc",
"MAINNET_BALANCE_CHECK_CHAIN_ID": 43114,
"evmchains": [
{
"ID": "C",
Expand Down
3 changes: 2 additions & 1 deletion server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
NATIVE_CLIENT,
DEBUG,
MAINNET_BALANCE_CHECK_RPC,
MAINNET_BALANCE_CHECK_CHAIN_ID,
} from './config.json'
import { CouponService } from './CouponService/couponService'
import {
Expand Down Expand Up @@ -190,7 +191,7 @@ router.post('/sendToken', captcha.middleware, async (req: any, res: any) => {
// GET request for fetching all the chain and token configurations
router.get('/getChainConfigs', (req: any, res: any) => {
const configs: any = [...evmchains, ...erc20tokens]
res.send({ configs, MAINNET_BALANCE_CHECK_RPC })
res.send({ configs, MAINNET_BALANCE_CHECK_RPC, MAINNET_BALANCE_CHECK_CHAIN_ID })
})

// GET request for fetching faucet address for the specified chain
Expand Down

0 comments on commit 33c8d4e

Please sign in to comment.