0

Want to get tokens amount sent to my contract address on chain, but don't know address of token.

Can I get through any function ?

Any possible way to so ?

1
  • 1
    I'm unsure of what you're asking. Could you include a snippet of Solidity, marking the area that you need help with? Or even just pseudocode?
    – natewelch_
    Commented Nov 7, 2018 at 16:48

2 Answers 2

0

If you know which address sent the token you can simple look at past transactions on etherscan, if you don't know that, I'm afraid these is no luck? I think if you are recieving an transaction it will show up.

0

Just go to etherscan using your contract address and look in the tab "ERC20 Token Txns". If some ERC20 were sent to you, these will be shown there.

Hope this helps

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.