If someone have problem with hex. See this example
console.log(BigInt("0x1456b678a3e50b2e").toString()); // 1465559358017702702 console.log(BigInt(0x1456b678a3e50b2e).toString()); // 1465559358017702656