I am using self hosted server and I have already integrated Polygon,Binance,Ethereum with Metamsk at frontend. While integrating Arbitrum chain API is giving error with status 400.
API: /server/functions/requestMessage
Error Message: [C0006] Request failed, Bad Request(400): chainId must be a valid enum value
code:
const { message } = await Moralis.Cloud.run(ârequestMessageâ, {
address: account,
chain: parseInt(chainId, 16),
networkType: 'evm',
});