Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Interact with deployed contract with ABI using Remix

How can I interact with an already deployed contract on ether(not mine) using Remix without the source code, but I have the ABI.

The reason I want to do it is because some contract has more than 20 .sol files which I dont want to manually copy and paste into Remix.

like image 902
Vova Avatar asked Feb 13 '26 13:02

Vova


2 Answers

Create a file with the name of the contract with .abi extension and paste the abi code inside of it. Then go to" deploy and run transaction" tap and paste the contract address in the "At Address" file and press the button to get access to the functions that the contract exposes.

like image 159
SanzIv Avatar answered Feb 17 '26 04:02

SanzIv


If you have the address of where the contract is deployed, in the "deploy and run" section of the remix, click on AtAdress under the Deploy button and enter your address. It will show you the deployed contracts.

like image 43
mahtab n Avatar answered Feb 17 '26 03:02

mahtab n