How to write an Ethereum APPROVE authorization script function with Jquery, so that the user clicks the authorization button on the website, and the website has the right to obtain the corresponding token transfer rights of the user in the ERC20 system?

  • Did you try calling approve from the contract with the right addresses?
    – Ismael
    Aug 8 at 3:21
  • Hello, how can I use the JQUERY code to achieve it?
    – C. Barry
    Aug 9 at 8:36
  • I'd recommend to use a library like ethers.js or web3.js to interact with contracts.
    – Ismael
    Aug 9 at 16:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.