Skip to main content

New answers tagged

0 votes

Automate the use of approve() without having to do it manually

In order to approve a contract to spend tokens on behalf of the user, the user must call the approve function of the corresponding token contract by passing in the contract address as spender and the ...
SYED ASAD KAZMI's user avatar
0 votes

what is the way to find out if a selected token will revert at 0 transfer

You can simulate a transaction using eth_call for example. With ethers v5 (docs), it's something like this: await tokenContract.callStatic.transfer(from, to, 0); You can simply check if it raises any ...
0xSanson's user avatar
  • 3,294

Top 50 recent answers are included