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