I know that we have require_auth
to check for permission, but I'm looking for something like is_valid_account
to check if the account exists and is active in the chain.
Do we have anything like that? I tried to use eosio.token
contract to transfer tokens to a non-existing account and it just allowed me to do so.
Thank you!
require_recipient
and the account does not exist the action will fail... but not sure if it's the best practice because doing that we always "notify" the recipient account