What the difference between ethers.ContractAt("", address) and ethers.Contract(address, abi, signer)?

1 Answer 1


hre.ethers.getContractAt("MyContract", contractAddress);: Gets a deployed instance of a contract, thats why it requires the address, and belongs to the hardhat environemnt (hre).

ethers.Contract(address, abi, signer): Returns a new instance of the Contract attached to a new address. This is an ethersjs method.

There is not a getContractAt on ethersjs

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.