Search code examples
binancecryptocurrencybscbep20

bep20 web3 send tokens between accounts example


someone can provide how to transfer bep20 token on BSC testnet between accounts. I tried in different ways but have a problem
enter image description here

enter image description here


Solution

  • The sender address, stored in the accountFrom.address value, doesn't hold enough BNB to pay for the gas fees related to the token transfer.

    Solution: Fund the address so that it has at least 0.00054187 BNB (= 54,187 gas units, times 10 gwei as the gas price) on the testnet to cover the fees for this transaction.