简体   繁体   中英

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM