0

I need to call .approve() function of a token which I address I know but which ABI I don't have. How to do it? Will it be enough to create ABI string which will contain the signature of .approve() function only? If not, how else then?

It's on the client side, and using ethers or web3js library.

1 Answer 1

1

if you only need to call the approve function you can use any standard erc20 abi, or as you said you can just make a custom abi that only has the approve function

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.