import { Lux, BN } from "lux/dist" import { EVMAPI } from "lux/dist/apis/evm" const ip: string = "localhost" const port: number = 9650 const protocol: string = "http" const networkID: number = 1337 const lux: Lux = new Lux(ip, port, protocol, networkID) const cchain: EVMAPI = lux.CChain() const main = async (): Promise => { const baseFeeResponse: string = await cchain.getBaseFee() const baseFee: BN = new BN(parseInt(baseFeeResponse)) console.log(`BaseFee: ${baseFee.toString()}`) } main()