Let's say that I deploy erc20 contract in ink and transfer to Bob 100 tokens, now I want in my contract to see did Bob having any amount of tokens, just to be sure that he can use my contract? How to do that?

In substrate pallets there is free_balance(), and how to do it in ink smart contracts?

1 Answer 1


Some previous answers that might be useful for you :

You can check the ink examples repository as well.

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.