1

Can we send ERC20 tokens to a contract address??

1 Answer 1

3

Yes, any address (contract or not) can be the recipient of ERC20 tokens.

The token contract keeps track of each address's balance. The implementation is usually very simple; just a mapping of addresses to their balances. The transfer method implementation probably won't do anything aside from check the sender's balance before making the transfer.

For more details see here.

1
  • 2
    Make sure the contract your sending tokens has some way to send tokens ( or acknowledge tokens have been received), otherwise the tokens will be stuck, nontransferable. Often you have to first approve the token, then tell the smart contract to transfer, so it's aware of this token. Check out ERC165, ERC820
    – Barrard
    Commented Dec 16, 2018 at 11:52

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.