I want to know what is an action?

What is the difference between actions and functions.

1 Answer 1


An action is a request for changing state database. Each action can trigger a function in contract class, and you can mark some functions to be triggered by [[eosio::action]] attribute. The functions without [[eosio::action]] cannot be called by action.

Other blockchains usually contain one request per one transaction, but EOSIO transaction can contain multiple requests (actions), and they are processed atomically. In other words, if even one action fails, it makes whole transaction fail, so you can bundle up actions which should be executed together. (Success all or Fail)

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.