Developers Forum for XinFin XDC Network

Discussion on: [Solved]XDC Transaction Error

Collapse
shashankgupta10 profile image
Shashank Gupta • Edited on

Hey I am getting the same error i also changed thr RPC url but to no avail
can you please send me your hardhat config file how you did it?

my code:
require("@nomicfoundation/hardhat-toolbox");
require("dotenv").config({ path: ".env" });

const XINFIN_PRIVATE_KEY = process.env.XINFIN_PRIVATE_KEY;

module.exports = {
solidity: "0.8.0",
networks: {
xinfin: {
url: ["erpc.apothem.network", "apothem.xdcrpc.com", "rpc.apothem.network "], accounts: [XINFIN_PRIVATE_KEY],
},
},
};